diff options
author | Denis Vlasenko | 2008-12-14 15:45:25 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-12-14 15:45:25 +0000 |
commit | 3139ea7f1567723e200d29e46e78953ea5fe4d5b (patch) | |
tree | 2ceaaa2b1b636c348140c42ab1c5beb2f44ad089 /testsuite/expand.tests | |
parent | 005ff882ba2760f5e85a521ed41360f58163f14c (diff) | |
download | busybox-3139ea7f1567723e200d29e46e78953ea5fe4d5b.zip busybox-3139ea7f1567723e200d29e46e78953ea5fe4d5b.tar.gz |
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 0000000..3f4cda3 --- /dev/null +++ b/testsuite/expand.tests @@ -0,0 +1,15 @@ +#!/bin/sh +# Copyright 2008 by Denys Vlasenko +# Licensed under GPL v2, see file LICENSE for details. + +. testing.sh + +# testing "test name" "options" "expected result" "file input" "stdin" + +testing "expand" \ + "expand" \ + " 12345678 12345678\n" \ + "" \ + "\t12345678\t12345678\n" \ + +exit $FAILCOUNT |