aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-11-04 15:31:19 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-11-04 15:31:19 +0100
commitded688c6f61c98f1bc1758dc559102c31c919d00 (patch)
tree59d0d68197c034853d20946c46105f73cb31e308 /testsuite
parent692bcff577fd3844e2017ffa6864d56f7a2bb5ad (diff)
downloadbusybox-w32-ded688c6f61c98f1bc1758dc559102c31c919d00.tar.gz
busybox-w32-ded688c6f61c98f1bc1758dc559102c31c919d00.tar.bz2
busybox-w32-ded688c6f61c98f1bc1758dc559102c31c919d00.zip
fold: fix a corner case. By Tomas Heinrich (heinrich.tomas AT gmail.com)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-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 @@
1#!/bin/sh
2# Copyright 2009 by Denys Vlasenko
3# Licensed under GPL v2, see file LICENSE for details.
4
5. testing.sh
6
7# testing "test name" "options" "expected result" "file input" "stdin"
8
9testing "fold -s" "fold -w 7 -s" \
10 "123456\n\t\nasdf" \
11 "" \
12 "123456\tasdf" \
13
14exit $FAILCOUNT