From 8c454fe9399ae52c893e61b6185e0d70523c3bc3 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 3 Aug 2004 00:03:57 +0000 Subject: (wide-1, wide-2, bad-suffix): Adjust to today's fmt.c fixes. --- tests/fmt/basic | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/fmt/basic b/tests/fmt/basic index bbc7db2e7..991f01d69 100755 --- a/tests/fmt/basic +++ b/tests/fmt/basic @@ -27,10 +27,12 @@ my @Tests = ['8-bit-pfx', qw (-p 'ç'), {IN=> "ça\nçb\n"}, {OUT=>"ça b\n"}], - ['wide-1', '-32768', {IN=> "a\n"}, {OUT=>"a\n"}], - ['wide-2', '-2147483647', {IN=> "a\n"}, {OUT=>"a\n"}], + ['wide-1', '-w 32768', + {ERR => "fmt: invalid width: `32768'\n"}, {EXIT => 1}], + ['wide-2', '-w 2147483647', + {ERR => "fmt: invalid width: `2147483647'\n"}, {EXIT => 1}], ['bad-suffix', '-72x', {IN=> ''}, - {ERR => "fmt: invalid width option: `-72x'\n"}, {EXIT => 1}], + {ERR => "fmt: invalid width: `72x'\n"}, {EXIT => 1}], ['no-file', 'no-such-file', {ERR => "fmt: cannot open `no-such-file' for reading:" . " No such file or directory\n"}, {EXIT => 1}], -- cgit v1.2.3-70-g09d2