@@ -35,7 +35,7 @@ fn reflog_by_entry_for_current_branch() {
3535
3636#[ test]
3737fn reflog_by_date_for_current_branch ( ) {
38- let rec = parse ( "@{1979-02-26 18:30:00 }" ) ;
38+ let rec = parse ( "@{42 +0030 }" ) ;
3939
4040 assert ! ( rec. kind. is_none( ) ) ;
4141 assert_eq ! ( rec. find_ref[ 0 ] , None ) ;
@@ -81,9 +81,9 @@ fn reflog_by_date_with_date_parse_failure() {
8181#[ test]
8282fn reflog_by_date_for_hash_is_invalid ( ) {
8383 for ( spec, full_name) in [
84- ( "1234@{1979-02-26 18:30:00 }" , "1234" ) ,
85- ( "abcd-dirty@{1979-02-26 18:30:00 }" , "abcd-dirty" ) ,
86- ( "v1.2.3-0-g1234@{1979-02-26 18:30:00 }" , "v1.2.3-0-g1234" ) ,
84+ ( "1234@{42 +0030 }" , "1234" ) ,
85+ ( "abcd-dirty@{42 +0030 }" , "abcd-dirty" ) ,
86+ ( "v1.2.3-0-g1234@{42 +0030 }" , "v1.2.3-0-g1234" ) ,
8787 ] {
8888 let err = try_parse ( spec) . unwrap_err ( ) ;
8989 assert ! ( matches!( err, spec:: parse:: Error :: ReflogLookupNeedsRefName { name} if name == full_name) ) ;
@@ -93,12 +93,9 @@ fn reflog_by_date_for_hash_is_invalid() {
9393#[ test]
9494fn reflog_by_date_for_given_ref_name ( ) {
9595 for ( spec, expected_ref) in [
96- ( "main@{1979-02-26 18:30:00}" , "main" ) ,
97- ( "refs/heads/other@{1979-02-26 18:30:00}" , "refs/heads/other" ) ,
98- (
99- "refs/worktree/feature/a@{1979-02-26 18:30:00}" ,
100- "refs/worktree/feature/a" ,
101- ) ,
96+ ( "main@{42 +0030}" , "main" ) ,
97+ ( "refs/heads/other@{42 +0030}" , "refs/heads/other" ) ,
98+ ( "refs/worktree/feature/a@{42 +0030}" , "refs/worktree/feature/a" ) ,
10299 ] {
103100 let rec = parse ( spec) ;
104101
0 commit comments