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 {
2727 fn date ( ) -> crate :: Result {
2828 let repo = crate :: named_repo ( "make_rev_parse_repo.sh" ) ?;
2929 let actual = repo
30- . rev_parse_single ( "old@{10 years ago}" )
30+ . rev_parse_single ( "old@{20 years ago}" )
3131 . expect ( "it returns the oldest possible rev when overshooting" ) ;
3232 assert_eq ! ( actual, hex_to_id( "be2f093f0588eaeb71e1eff7451b18c2a9b1d765" ) ) ;
3333
3434 let actual = repo
35- . rev_parse_single ( "old@{1 month ago }" )
35+ . rev_parse_single ( "old@{1732184844 }" )
3636 . 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+ ) ;
3842 Ok ( ( ) )
3943 }
4044}
You can’t perform that action at this time.
0 commit comments