summaryrefslogtreecommitdiff
path: root/t/t1508-at-combinations.sh
diff options
context:
space:
mode:
authorRamkumar Ramachandra <artagnon@gmail.com>2013-05-07 21:55:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-05-08 16:15:37 (GMT)
commitf58dc19e571bea9b7b079041198c21ec15ac3cea (patch)
treeb0292f30db8c7f61aab982b50d2b3f07fc456f5f /t/t1508-at-combinations.sh
parent89d5dd4e2f47186687d70223847cec8ec3fb16dd (diff)
downloadgit-f58dc19e571bea9b7b079041198c21ec15ac3cea.zip
git-f58dc19e571bea9b7b079041198c21ec15ac3cea.tar.gz
git-f58dc19e571bea9b7b079041198c21ec15ac3cea.tar.bz2
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>
Diffstat (limited to 't/t1508-at-combinations.sh')
-rwxr-xr-xt/t1508-at-combinations.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t1508-at-combinations.sh b/t/t1508-at-combinations.sh
index d45a410..31e95a5 100755
--- a/t/t1508-at-combinations.sh
+++ b/t/t1508-at-combinations.sh
@@ -44,13 +44,21 @@ test_expect_success 'setup' '
check HEAD ref refs/heads/new-branch
check "@{1}" commit new-one
+check "HEAD@{1}" commit new-one
+check "@{now}" commit new-two
+check "HEAD@{now}" commit new-two
check "@{-1}" ref refs/heads/old-branch
+check "@{-1}@{0}" commit old-two
check "@{-1}@{1}" commit old-one
check "@{u}" ref refs/heads/upstream-branch
+check "HEAD@{u}" ref refs/heads/upstream-branch
check "@{u}@{1}" commit upstream-one
check "@{-1}@{u}" ref refs/heads/master
check "@{-1}@{u}@{1}" commit master-one
nonsense "@{u}@{-1}"
+nonsense "@{0}@{0}"
nonsense "@{1}@{u}"
+nonsense "HEAD@{-1}"
+nonsense "@{-1}@{-1}"
test_done