Unified · Split
| @@ -284,6 +284,7 @@ Use lock-files in the way git does with auto-cleanup being the most notable feat · 283 unmodified lines | |||
| 284 | * [ ] support for different backends like `files` and `reftable` | 284 | * [ ] support for different backends like `files` and `reftable` |
| 285 | * [ ] worktrees | 285 | * [ ] worktrees |
| 286 | * [ ] remotes with push and pull | 286 | * [ ] remotes with push and pull |
| 287 | * [ ] mailmap | ||
| 287 | * [ ] configuration | 288 | * [ ] configuration |
| 288 | * [ ] merging | 289 | * [ ] merging |
| 289 | * [ ] stashing | 290 | * [ ] stashing |
| @@ -106,7 +106,6 @@ mod prepare_and_commit { · 105 unmodified lines | |||
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | #[test] | 108 | #[test] |
| 109 | #[should_panic] | ||
| 110 | fn delete_a_ref_which_is_gone_but_must_exist_fails() { | 109 | fn delete_a_ref_which_is_gone_but_must_exist_fails() { |
| 111 | let store = empty_store(WriteReflog::Normal).unwrap(); | 110 | let store = empty_store(WriteReflog::Normal).unwrap(); |
| 112 | let res = store | 111 | let res = store |
| @@ -122,7 +121,10 @@ mod prepare_and_commit { · 9 unmodified lines | |||
| 122 | .commit(); | 121 | .commit(); |
| 123 | match res { | 122 | match res { |
| 124 | Ok(_) => unreachable!("must exist, but it doesn't actually exist"), | 123 | Ok(_) => unreachable!("must exist, but it doesn't actually exist"), |
| 125 | Err(err) => assert_eq!(err.to_string(), "hello err"), | 124 | Err(err) => assert_eq!( |
| 125 | err.to_string(), | ||
| 126 | "The reference 'DOES_NOT_EXIST' for deletion did not exist" | ||
| 127 | ), | ||
| 126 | } | 128 | } |
| 127 | } | 129 | } |
| 128 | 130 | ||