File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,18 @@ mod revision {
27
27
fn date ( ) -> crate :: Result {
28
28
let repo = crate :: named_repo ( "make_rev_parse_repo.sh" ) ?;
29
29
let actual = repo
30
- . rev_parse_single ( "old@{10 years ago}" )
30
+ . rev_parse_single ( "old@{20 years ago}" )
31
31
. expect ( "it returns the oldest possible rev when overshooting" ) ;
32
32
assert_eq ! ( actual, hex_to_id( "be2f093f0588eaeb71e1eff7451b18c2a9b1d765" ) ) ;
33
33
34
34
let actual = repo
35
- . rev_parse_single ( "old@{1 month ago }" )
35
+ . rev_parse_single ( "old@{1732184844 }" )
36
36
. expect ( "it finds something in the middle" ) ;
37
- assert_eq ! ( actual, hex_to_id( "b29405fe9147a3a366c4048fbe295ea04de40fa6" ) ) ;
37
+ assert_eq ! (
38
+ actual,
39
+ hex_to_id( "b29405fe9147a3a366c4048fbe295ea04de40fa6" ) ,
40
+ "It also figures out that we don't mean an index, but a date"
41
+ ) ;
38
42
Ok ( ( ) )
39
43
}
40
44
}
You can’t perform that action at this time.
0 commit comments