3 test_description='various @{whatever} syntax tests'
6 test_expect_success 'setup' '
13 git log -1 --format=%s "$1" >actual &&
14 test_cmp expect actual
17 test_expect_success '@{0} shows current' '
21 test_expect_success '@{1} shows old' '
25 test_expect_success '@{now} shows current' '
29 test_expect_success '@{30.years.ago} shows old' '
30 check_at @{30.years.ago} one
33 test_expect_success 'silly approxidates work' '
34 check_at @{3.hot.dogs.and.30.years.ago} one
37 test_expect_success 'notice misspelled upstream' '
38 test_must_fail git log -1 --format=%s @{usptream}
41 test_expect_success 'complain about total nonsense' '
42 test_must_fail git log -1 --format=%s @{utter.bogosity}