From: Markus Heidelberg Date: Wed, 28 Oct 2009 12:24:30 GMT Subject: [PATCH 1/3] t4034-diff-words: add a test for word diff without context Message-ID: <1256732672-11817-2-git-send-email-markus.heidelberg@web.de> In-Reply-To: <1256732672-11817-1-git-send-email-markus.heidelberg@web.de> Signed-off-by: Markus Heidelberg --- t/t4034-diff-words.sh | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/t/t4034-diff-words.sh b/t/t4034-diff-words.sh index 4508eff..82240cf 100755 --- a/t/t4034-diff-words.sh +++ b/t/t4034-diff-words.sh @@ -68,6 +68,26 @@ cat > expect <<\EOF index 330b04f..5ed8eff 100644 --- a/pre +++ b/post +@@ -1 +1 @@ +h(4)h(4),hh[44] +@@ -3,0 +4,4 @@ a = b + c + +aa = a + +aeff = aeff * ( aaa ) +EOF + +test_expect_failure 'word diff without context' ' + + word_diff --color-words --unified=0 + +' + +cat > expect <<\EOF +diff --git a/pre b/post +index 330b04f..5ed8eff 100644 +--- a/pre ++++ b/post @@ -1,3 +1,7 @@ h(4),hh[44] -- 1.6.5.2.86.g61663