diff options
-rwxr-xr-x | tests/fmt/basic | 8 |
1 files changed, 5 insertions, 3 deletions
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}], |