X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft4034-diff-words.sh;h=5c2012111c28d338ad979fb7bcca871e744184fe;hb=969fe57b844a514747c1d5d66e0698dc53ed473d;hp=c374aa4c1c60e9a12cf1ebf5587daf3656e4851a;hpb=9e3e789e70701beb25b3135d292edfbc99035701;p=git.git diff --git a/t/t4034-diff-words.sh b/t/t4034-diff-words.sh index c374aa4c1..5c2012111 100755 --- a/t/t4034-diff-words.sh +++ b/t/t4034-diff-words.sh @@ -299,6 +299,7 @@ test_language_driver csharp test_language_driver fortran test_language_driver html test_language_driver java +test_language_driver matlab test_language_driver objc test_language_driver pascal test_language_driver perl @@ -333,4 +334,18 @@ test_expect_success 'word-diff with diff.sbe' ' word_diff --word-diff=plain ' +test_expect_success 'word-diff with no newline at EOF' ' + cat >expect <<-\EOF && + diff --git a/pre b/post + index 7bf316e..3dd0303 100644 + --- a/pre + +++ b/post + @@ -1 +1 @@ + a a [-a-]{+ab+} a a + EOF + printf "%s" "a a a a a" >pre && + printf "%s" "a a ab a a" >post && + word_diff --word-diff=plain +' + test_done