diff options
author | Jim Meyering <jim@meyering.net> | 2000-01-22 11:10:40 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-01-22 11:10:40 +0000 |
commit | c951e3f2c9ef59c92b9a7a85c41ec87e4ca3ce79 (patch) | |
tree | 3037139e732fba70f2189e300c99853ebb30316b /tests | |
parent | e48c32024459b7b1945f4f37f4be7b1ae04d3ea0 (diff) | |
download | coreutils-c951e3f2c9ef59c92b9a7a85c41ec87e4ca3ce79.tar.xz |
Add new tests for the new functionality.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/seq/basic | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/seq/basic b/tests/seq/basic index 95e563a07..d1002bf38 100755 --- a/tests/seq/basic +++ b/tests/seq/basic @@ -31,6 +31,17 @@ my @Tests = ['neg-2', qw(-.1 .1 .1), {OUT => [qw(-0.1 0 0.1)]}], ['neg-3', qw(1 -1 0), {OUT => [qw(1 0)]}], ['neg-4', qw(1 -1 -1), {OUT => [qw(1 0 -1)]}], + + ['int-1', qw(--format=%d 1 -1 -1), {OUT => [qw(1 0 -1)]}], + ['int-2', qw(--format=%02d 1 -1 -1), {OUT => [qw(01 00 -1)]}], + ['int-3', qw(--format=%03d 1 -1 -1), {OUT => [qw(001 000 -01)]}], + + # this will fail on systems where `int' != 32 bits + ['hex-1', qw(--format=%x 1 -1 -1), {OUT => [qw(1 0 ffffffff)]}], + + ['hex-2', qw(--format=%x 32 36), {OUT => [qw(20 21 22 23 24)]}], + + ['oct-1', qw(--format=%o 32 36), {OUT => [qw(40 41 42 43 44)]}], ); # Append a newline to each entry in the OUT array. |