Code

spec: add missing build dependency
[git.git] / t / t0040-parse-options.sh
index a44bcb9b3983fa2ba3bc9182702e309577bfc441..e3f354a45e382dbaa9de4557aa9310fa21eb626b 100755 (executable)
@@ -236,6 +236,16 @@ test_expect_success 'detect possible typos' '
        test_cmp typo.err output.err
 '
 
+cat > typo.err << EOF
+error: did you mean \`--ambiguous\` (with two dashes ?)
+EOF
+
+test_expect_success 'detect possible typos' '
+       test_must_fail test-parse-options -ambiguous > output 2> output.err &&
+       test ! -s output &&
+       test_cmp typo.err output.err
+'
+
 cat > expect <<EOF
 boolean: 0
 integer: 0