tests: at-combinations: increase coverage
Add more tests exercising documented functionality. [fc: commit message and extra tests] Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ramkumar Ramachandra committed
May 7, 2013 at 16:55 UTC
f58dc19e571bea9b7b079041198c21ec15ac3cea
1 file changed
+8
t/t1508-at-combinations.sh
+8
@@ -44,13 +44,21 @@ test_expect_success 'setup' '
44
45
check HEAD ref refs/heads/new-branch
46
check "@{1}" commit new-one
47
+check "HEAD@{1}" commit new-one
48
+check "@{now}" commit new-two
49
+check "HEAD@{now}" commit new-two
50
check "@{-1}" ref refs/heads/old-branch
51
+check "@{-1}@{0}" commit old-two
52
check "@{-1}@{1}" commit old-one
53
check "@{u}" ref refs/heads/upstream-branch
54
+check "HEAD@{u}" ref refs/heads/upstream-branch
55
check "@{u}@{1}" commit upstream-one
56
check "@{-1}@{u}" ref refs/heads/master
57
check "@{-1}@{u}@{1}" commit master-one
58
nonsense "@{u}@{-1}"
59
+nonsense "@{0}@{0}"
60
nonsense "@{1}@{u}"
61
+nonsense "HEAD@{-1}"
62
+nonsense "@{-1}@{-1}"
63
64
test_done