test-parse-options: update to handle negative ints
[gitweb.git] / t / t0040-parse-options.sh
index b0447851750e3f196ea2da90f84ce31fefce30ae..372d521c25efdaf426ca4e252b946fc405f51646 100755 (executable)
@@ -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