Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
test-parse-options: update to handle negative ints
[gitweb.git]
/
t
/
t0040-parse-options.sh
diff --git
a/t/t0040-parse-options.sh
b/t/t0040-parse-options.sh
index b0447851750e3f196ea2da90f84ce31fefce30ae..372d521c25efdaf426ca4e252b946fc405f51646 100755
(executable)
--- a/
t/t0040-parse-options.sh
+++ b/
t/t0040-parse-options.sh
@@
-132,6
+132,8
@@
test_expect_success 'OPT_BOOL() no negation #2' 'check_unknown_i18n --no-no-fear
test_expect_success 'OPT_BOOL() positivation' 'check boolean: 0 -D --doubt'
+test_expect_success 'OPT_INT() negative' 'check integer: -2345 -i -2345'
+
cat > expect << EOF
boolean: 2
integer: 1729