aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtestsuite/diff.tests12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/diff.tests b/testsuite/diff.tests
index 84d853852..0ced0f248 100755
--- a/testsuite/diff.tests
+++ b/testsuite/diff.tests
@@ -98,6 +98,18 @@ testing "diff -B does not ignore changes whose lines are not all blank" \
98 "a\n" \ 98 "a\n" \
99 "\nb\n\n" 99 "\nb\n\n"
100 100
101testing "diff -B ignores blank single line change" \
102 'diff -qB - input; echo $?' \
103 "0\n" \
104 "\n1\n" \
105 "1\n"
106
107testing "diff -B does not ignore non-blank single line change" \
108 'diff -qB - input; echo $?' \
109 "Files - and input differ\n1\n" \
110 "0\n" \
111 "1\n"
112
101testing "diff always takes context from old file" \ 113testing "diff always takes context from old file" \
102 "diff -ub - input | $TRIM_TAB" \ 114 "diff -ub - input | $TRIM_TAB" \
103"\ 115"\