diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-14 18:45:25 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-14 18:45:25 +0300 |
commit | 3139ea7f1567723e200d29e46e78953ea5fe4d5b (patch) | |
tree | 2ceaaa2b1b636c348140c42ab1c5beb2f44ad089 /testsuite | |
parent | 005ff882ba2760f5e85a521ed41360f58163f14c (diff) |
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')
-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 @@ +#!/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 |