aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fold.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/fold.tests')
-rwxr-xr-xtestsuite/fold.tests14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/fold.tests b/testsuite/fold.tests
new file mode 100755
index 000000000..5e1f34552
--- /dev/null
+++ b/testsuite/fold.tests
@@ -0,0 +1,14 @@
+#!/bin/sh
+# Copyright 2009 by Denys Vlasenko
+# Licensed under GPL v2, see file LICENSE for details.
+
+. testing.sh
+
+# testing "test name" "options" "expected result" "file input" "stdin"
+
+testing "fold -s" "fold -w 7 -s" \
+ "123456\n\t\nasdf" \
+ "" \
+ "123456\tasdf" \
+
+exit $FAILCOUNT