From: Markus Heidelberg Date: Wed, 28 Oct 2009 12:24:30 +0000 (+0100) Subject: t4034-diff-words: add a test for word diff without context X-Git-Tag: v1.6.5.3~3^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=168eff3c802a47a4e8a97b2ec70d86e5f605a012;p=git.git t4034-diff-words: add a test for word diff without context Signed-off-by: Markus Heidelberg Signed-off-by: Junio C Hamano --- diff --git a/t/t4034-diff-words.sh b/t/t4034-diff-words.sh index 4508effca..82240cf44 100755 --- a/t/t4034-diff-words.sh +++ b/t/t4034-diff-words.sh @@ -63,6 +63,26 @@ test_expect_success 'word diff with runs of whitespace' ' ' +cat > expect <<\EOF +diff --git a/pre b/post +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