From 3139ea7f1567723e200d29e46e78953ea5fe4d5b Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 14 Dec 2008 15:45:25 +0000 Subject: expand: fix incorrect expansion exactly on tab boundary; shrink the code function old new delta expand_main 698 676 -22 xputchar 53 - -53 --- testsuite/expand.tests | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 testsuite/expand.tests (limited to 'testsuite/expand.tests') 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 -- cgit v1.2.3