Imported Upstream version 2.18.0
[platform/upstream/git.git] / t / t4018-diff-funcname.sh
index 34591c2..22f9f88 100755 (executable)
@@ -30,7 +30,10 @@ diffpatterns="
        bibtex
        cpp
        csharp
+       css
        fortran
+       fountain
+       golang
        html
        java
        matlab
@@ -52,15 +55,15 @@ do
                echo "*.java diff=$p" >.gitattributes &&
                test_expect_code 1 git diff --no-index \
                        A.java B.java 2>msg &&
-               ! test_i18ngrep fatal msg &&
-               ! test_i18ngrep error msg
+               test_i18ngrep ! fatal msg &&
+               test_i18ngrep ! error msg
        '
        test_expect_success "builtin $p wordRegex pattern compiles" '
                echo "*.java diff=$p" >.gitattributes &&
                test_expect_code 1 git diff --no-index --word-diff \
                        A.java B.java 2>msg &&
-               ! test_i18ngrep fatal msg &&
-               ! test_i18ngrep error msg
+               test_i18ngrep ! fatal msg &&
+               test_i18ngrep ! error msg
        '
 done