diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-14 15:45:25 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-14 15:45:25 +0000 |
commit | 3139ea7f1567723e200d29e46e78953ea5fe4d5b (patch) | |
tree | 2ceaaa2b1b636c348140c42ab1c5beb2f44ad089 /testsuite/expand.tests | |
parent | 005ff882ba2760f5e85a521ed41360f58163f14c (diff) | |
download | busybox-w32-3139ea7f1567723e200d29e46e78953ea5fe4d5b.tar.gz busybox-w32-3139ea7f1567723e200d29e46e78953ea5fe4d5b.tar.bz2 busybox-w32-3139ea7f1567723e200d29e46e78953ea5fe4d5b.zip |
expand: fix incorrect expansion exactly on tab boundary; shrink the code
function old new delta
expand_main 698 676 -22
xputchar 53 - -53
Diffstat (limited to 'testsuite/expand.tests')
-rwxr-xr-x | testsuite/expand.tests | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/expand.tests b/testsuite/expand.tests new file mode 100755 index 000000000..3f4cda3f8 --- /dev/null +++ b/testsuite/expand.tests | |||
@@ -0,0 +1,15 @@ | |||
1 | #!/bin/sh | ||
2 | # Copyright 2008 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 | |||
9 | testing "expand" \ | ||
10 | "expand" \ | ||
11 | " 12345678 12345678\n" \ | ||
12 | "" \ | ||
13 | "\t12345678\t12345678\n" \ | ||
14 | |||
15 | exit $FAILCOUNT | ||