]> diplodocus.org Git - nmh/commitdiff
uip/anno.c: Increase coverage.
authorRalph Corderoy <ralph@inputplus.co.uk>
Tue, 1 Nov 2016 00:08:02 +0000 (00:08 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Tue, 1 Nov 2016 00:18:36 +0000 (00:18 +0000)
test/anno/test-anno

index a7755ed7895c0205be0e1828bd0a9d27de8e3433..3682e353afcaca16586e059801b7c6084fd9f5c5 100755 (executable)
@@ -17,6 +17,23 @@ fi
 setup_test
 
 check_exit '-eq 1' anno - # gcov
 setup_test
 
 check_exit '-eq 1' anno - # gcov
+check_exit '-eq 1' anno -comp # gcov
+check_exit '-eq 1' anno -comp foo -comp bar # gcov
+check_exit '-eq 1' anno -text # gcov
+check_exit '-eq 1' anno -text foo -text bar # gcov
+check_exit '-eq 1' anno -number 0 # gcov
+check_exit '-eq 1' anno -number -number # gcov
+check_exit '-eq 1' anno + @ # gcov
+check_exit '-eq 1' anno -draft 42 # gcov
+check_exit '-eq 1' anno -draft -list </dev/null # gcov
+check_exit '-eq 1' anno -draft -list -comp foo # gcov
+check_exit '-eq 1' anno -draft -comp f.o: # gcov
+check_exit '-eq 1' anno -draft -comp '' # gcov
+x=tendixzehn
+l=$x$x$x$x$x
+c=$l$l
+d=$c$c$c$c$c
+check_exit '-eq 1' anno -draft -comp $d$c$c$c$c$l$x$x$x${x}123456789 # gcov
 
 expected=$MH_TEST_DIR/$$.expected
 expected_err=$MH_TEST_DIR/$$.expected_err
 
 expected=$MH_TEST_DIR/$$.expected
 expected_err=$MH_TEST_DIR/$$.expected_err