diff options
author | Jim Meyering <jim@meyering.net> | 1995-12-01 07:32:12 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-12-01 07:32:12 +0000 |
commit | 5106e930d14cc012c6ff5185d9cb5fca619aaf5d (patch) | |
tree | 431170e460b6b3542261571ca75d633f1ce8dbe8 /tests/sort | |
parent | 74b4707ea65fea0217120c779a076fcf13cd20e4 (diff) | |
download | coreutils-5106e930d14cc012c6ff5185d9cb5fca619aaf5d.tar.xz |
Exercise bug re comparing `-' and integers.
Diffstat (limited to 'tests/sort')
-rwxr-xr-x | tests/sort/test.data.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/sort/test.data.pl b/tests/sort/test.data.pl index 92ea8b188..f475b98c4 100755 --- a/tests/sort/test.data.pl +++ b/tests/sort/test.data.pl @@ -83,3 +83,10 @@ ("11b", '-t: -k1,1b -k2,2', "a :b\na\t:a\n", "a\t:a\na :b\n", 0); ("11c", '-t: -k2,2b -k3,3', "z:a\t:a\na :b\n", "z:a\t:a\na :b\n", 0); ("11d", '-t: -k2,2b -k3,3', "z:a :b\na\t:a\n", "a\t:a\nz:a :b\n", 0); +# +# Exercise bug re comparing `-' and integers. +("12a", '-n -t: +1', "a:1\nb:-\n", "b:-\na:1\n", 0); +("12b", '-n -t: +1', "b:-\na:1\n", "b:-\na:1\n", 0); +# Try some other (e.g. `X') invalid character. +("12c", '-n -t: +1', "a:1\nb:X\n", "b:X\na:1\n", 0); +("12d", '-n -t: +1', "b:X\na:1\n", "b:X\na:1\n", 0); |