Skip to content

Commit f58dc19

Browse files
artagnongitster
authored andcommitted
tests: at-combinations: increase coverage
Add more tests exercising documented functionality. [fc: commit message and extra tests] Signed-off-by: Ramkumar Ramachandra <[email protected]> Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 89d5dd4 commit f58dc19

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

t/t1508-at-combinations.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,21 @@ test_expect_success 'setup' '
4444

4545
check HEAD ref refs/heads/new-branch
4646
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
4750
check "@{-1}" ref refs/heads/old-branch
51+
check "@{-1}@{0}" commit old-two
4852
check "@{-1}@{1}" commit old-one
4953
check "@{u}" ref refs/heads/upstream-branch
54+
check "HEAD@{u}" ref refs/heads/upstream-branch
5055
check "@{u}@{1}" commit upstream-one
5156
check "@{-1}@{u}" ref refs/heads/master
5257
check "@{-1}@{u}@{1}" commit master-one
5358
nonsense "@{u}@{-1}"
59+
nonsense "@{0}@{0}"
5460
nonsense "@{1}@{u}"
61+
nonsense "HEAD@{-1}"
62+
nonsense "@{-1}@{-1}"
5563

5664
test_done

0 commit comments

Comments
 (0)