From ded688c6f61c98f1bc1758dc559102c31c919d00 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 4 Nov 2009 15:31:19 +0100 Subject: fold: fix a corner case. By Tomas Heinrich (heinrich.tomas AT gmail.com) Signed-off-by: Denys Vlasenko --- testsuite/fold.tests | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 testsuite/fold.tests (limited to 'testsuite') diff --git a/testsuite/fold.tests b/testsuite/fold.tests new file mode 100755 index 0000000..5e1f345 --- /dev/null +++ b/testsuite/fold.tests @@ -0,0 +1,14 @@ +#!/bin/sh +# Copyright 2009 by Denys Vlasenko +# Licensed under GPL v2, see file LICENSE for details. + +. testing.sh + +# testing "test name" "options" "expected result" "file input" "stdin" + +testing "fold -s" "fold -w 7 -s" \ + "123456\n\t\nasdf" \ + "" \ + "123456\tasdf" \ + +exit $FAILCOUNT -- cgit v1.1