summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-04-19 19:19:33 -0700
committerJunio C Hamano <gitster@pobox.com>2017-04-25 23:25:17 -0700
commita1161187f2a6dead040f2ed8b2c7ec347c5a643d (patch)
tree467103832c70e555a061ee88a6e9f1218b9d7667
parent5563131f9ae4d2f087238c03634796d1993927d1 (diff)
downloadgit-a1161187f2a6dead040f2ed8b2c7ec347c5a643d.tar.gz
-rwxr-xr-xt/t0040-parse-options.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/t/t0040-parse-options.sh b/t/t0040-parse-options.sh
index abccfa5f26..22929280fe 100755
--- a/t/t0040-parse-options.sh
+++ b/t/t0040-parse-options.sh
@@ -93,6 +93,7 @@ test_expect_success 'OPT_BOOL() no negation #1' 'check_unknown_i18n --fear'
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_BOOL() no double negation' 'check_unknown_i18n --no-no-doubt'
test_expect_success 'OPT_INT() negative' 'check integer: -2345 -i -2345'
@@ -391,8 +392,4 @@ test_expect_success '--no-verbose resets multiple verbose to 0' '
test-parse-options --expect="verbose: 0" -v -v -v --no-verbose
'
-test_expect_success 'double negation not accepted' '
- test_must_fail test-parse-options --expect="boolean: 0" --no-no-doubt
-'
-
test_done