From: Ramkumar Ramachandra Date: Thu, 02 May 2013 13:39:29 GMT Subject: [PATCH 4/9] t1508 (at-combinations): increase coverage Message-ID: <1367501974-6879-5-git-send-email-artagnon@gmail.com> In-Reply-To: <1367501974-6879-1-git-send-email-artagnon@gmail.com> Add more tests exercising documented functionality. It is worth nothing that HEAD@{-} is senseless because @{-} cannot be used with anything other than HEAD anyway. [fc: contribute a couple of tests] Signed-off-by: Ramkumar Ramachandra --- t/t1508-at-combinations.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/t/t1508-at-combinations.sh b/t/t1508-at-combinations.sh index 55fdd0f..eaa5337 100755 --- a/t/t1508-at-combinations.sh +++ b/t/t1508-at-combinations.sh @@ -42,13 +42,21 @@ test_expect_success 'setup' ' check HEAD 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}" refs/heads/old-branch +check "@{-1}@{0}" commit old-two check "@{-1}@{1}" commit old-one check "@{u}" refs/heads/upstream-branch +check "HEAD@{u}" refs/heads/upstream-branch check "@{u}@{1}" commit upstream-one check "@{-1}@{u}" 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 -- 1.8.3.rc0.40.g09a0447