summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-07-27 20:22:29 +0000
committerJim Meyering <jim@meyering.net>1995-07-27 20:22:29 +0000
commit6473e3638f8940523d1336ddf3247b0cccbd4655 (patch)
tree161cd015db7c501d099a756c3e530563b462320c /tests
parent7e93c0f64b24e2aab9194ad73f513d112c201477 (diff)
downloadcoreutils-6473e3638f8940523d1336ddf3247b0cccbd4655.tar.xz
.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/sort/test.data.pl16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/sort/test.data.pl b/tests/sort/test.data.pl
index 9b3c57a1e..8198edabe 100755
--- a/tests/sort/test.data.pl
+++ b/tests/sort/test.data.pl
@@ -1,4 +1,4 @@
-#test options input expected-output return-code
+#test options input expected-output expected-return-code
#
("1a", '', "A\nB\nC\n", "A\nB\nC\n", 0);
#
@@ -23,3 +23,17 @@
("4c", '-k1n', "11\n2\n", "2\n11\n", 0);
("4d", '-k1', "11\n2\n", "11\n2\n", 0);
("4e", '-k2', "ignored B\nz-ig A\n", "z-ig A\nignored B\n", 0);
+#
+("5a", '-k1,2', "A B\nA A\n", "A A\nA B\n", 0);
+("5b", '-k1,2', "A B A\nA A Z\n", "A A Z\nA B A\n", 0);
+("5c", '-k1 -k2', "A B A\nA A Z\n", "A A Z\nA B A\n", 0);
+("5d", '-k2,2', "A B A\nA A Z\n", "A A Z\nA B A\n", 0);
+("5e", '-k2,2', "A B Z\nA A A\n", "A A A\nA B Z\n", 0);
+("5f", '-k2,2', "A B A\nA A Z\n", "A A Z\nA B A\n", 0);
+#
+("6a", '-k 1,2', "A B\nA A\n", "A A\nA B\n", 0);
+("6b", '-k 1,2', "A B A\nA A Z\n", "A A Z\nA B A\n", 0);
+("6c", '-k 1 -k 2', "A B A\nA A Z\n", "A A Z\nA B A\n", 0);
+("6d", '-k 2,2', "A B A\nA A Z\n", "A A Z\nA B A\n", 0);
+("6e", '-k 2,2', "A B Z\nA A A\n", "A A A\nA B Z\n", 0);
+("6f", '-k 2,2', "A B A\nA A Z\n", "A A Z\nA B A\n", 0);