X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft4034-diff-words.sh;h=5c2012111c28d338ad979fb7bcca871e744184fe;hb=f629c233e6dd72924ed2672db142708b71dc663e;hp=6f1e5a2a15f0215e4ed7c19437f5d000edbbd255;hpb=200888ef3bbc150cc20b99e0aa039c751c00e07a;p=git.git diff --git a/t/t4034-diff-words.sh b/t/t4034-diff-words.sh index 6f1e5a2a1..5c2012111 100755 --- a/t/t4034-diff-words.sh +++ b/t/t4034-diff-words.sh @@ -334,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