summaryrefslogtreecommitdiff
path: root/testsuite/diff.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/diff.tests')
-rwxr-xr-xtestsuite/diff.tests11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/diff.tests b/testsuite/diff.tests
index 6de4648..84d8538 100755
--- a/testsuite/diff.tests
+++ b/testsuite/diff.tests
@@ -44,6 +44,17 @@ testing "diff of stdin, twice" \
"" \
"stdin"
+testing "diff of empty file against stdin" \
+ "diff -u - input | $TRIM_TAB" \
+"\
+--- -
++++ input
+@@ -1 +0,0 @@
+-a
+" \
+ "" \
+ "a\n"
+
testing "diff of empty file against nonempty one" \
"diff -u - input | $TRIM_TAB" \
"\