diff options
Diffstat (limited to 'testsuite/diff.tests')
-rwxr-xr-x | testsuite/diff.tests | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/diff.tests b/testsuite/diff.tests index 6de46483b..84d853852 100755 --- a/testsuite/diff.tests +++ b/testsuite/diff.tests | |||
@@ -44,6 +44,17 @@ testing "diff of stdin, twice" \ | |||
44 | "" \ | 44 | "" \ |
45 | "stdin" | 45 | "stdin" |
46 | 46 | ||
47 | testing "diff of empty file against stdin" \ | ||
48 | "diff -u - input | $TRIM_TAB" \ | ||
49 | "\ | ||
50 | --- - | ||
51 | +++ input | ||
52 | @@ -1 +0,0 @@ | ||
53 | -a | ||
54 | " \ | ||
55 | "" \ | ||
56 | "a\n" | ||
57 | |||
47 | testing "diff of empty file against nonempty one" \ | 58 | testing "diff of empty file against nonempty one" \ |
48 | "diff -u - input | $TRIM_TAB" \ | 59 | "diff -u - input | $TRIM_TAB" \ |
49 | "\ | 60 | "\ |