summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--t/annotate-tests.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/annotate-tests.sh b/t/annotate-tests.sh
index dabe89d91a..376b042f2f 100644
--- a/t/annotate-tests.sh
+++ b/t/annotate-tests.sh
@@ -185,6 +185,18 @@ test_expect_success 'blame -L Y,X (undocumented)' '
check_count -L6,3 B 1 B1 1 B2 1 D 1
'
+test_expect_failure 'blame -L -X' '
+ test_must_fail $PROG -L-1 file
+'
+
+test_expect_failure 'blame -L 0' '
+ test_must_fail $PROG -L0 file
+'
+
+test_expect_failure 'blame -L ,0' '
+ test_must_fail $PROG -L,0 file
+'
+
test_expect_success 'blame -L ,+0' '
test_must_fail $PROG -L,+0 file
'