summaryrefslogtreecommitdiff
path: root/tests/join
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-05-28 17:58:16 +0000
committerJim Meyering <jim@meyering.net>1995-05-28 17:58:16 +0000
commit22e09d7c8e0db508f62a4c303964c57bb03d7af7 (patch)
tree56c31ac32894cd5f9c97e9440a79754e0baba765 /tests/join
parent0dfe7fe96ea6fac64b9cbffbbc01a85f13b34846 (diff)
downloadcoreutils-22e09d7c8e0db508f62a4c303964c57bb03d7af7.tar.xz
Add tests.
Diffstat (limited to 'tests/join')
-rwxr-xr-xtests/join/test.data.pl16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/join/test.data.pl b/tests/join/test.data.pl
index 2c3a1f695..35ea70d4c 100755
--- a/tests/join/test.data.pl
+++ b/tests/join/test.data.pl
@@ -26,3 +26,19 @@
('5b', '-a1 -e - -o 1.1 2.2', "apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\nfeb 15", "apr 06\naug 14\ndec -\nfeb 15\n", 0);
('5c', '-a1 -e - -o 1.1 2.2', "aug 20\ndec 18\n", "aug 14\ndate\nfeb 15", "aug 14\ndec -\n", 0);
('5d', '-a1 -e - -o 1.1 2.2', "dec 18\n", "", "dec -\n", 0);
+('5e', '-a2 -e - -o 1.1 2.2', "apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\nfeb 15\n", "apr 06\naug 14\n- -\nfeb 15\n", 0);
+('5f', '-a2 -e - -o 2.2 1.1', "apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\nfeb 15\n", "06 apr\n14 aug\n- -\n15 feb\n", 0);
+('5g', '-a1 -e - -o 2.2 1.1', "apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\nfeb 15\n", "06 apr\n14 aug\n- dec\n15 feb\n", 0);
+
+('5h', '-a1 -e - -o 2.2 1.1', "apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\n", "06 apr\n14 aug\n- dec\n- feb\n", 0);
+('5i', '-a1 -e - -o 1.1 2.2', "apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\n", "apr 06\naug 14\ndec -\nfeb -\n", 0);
+
+('5j', '-a2 -e - -o 2.2 1.1', "apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\n", "06 apr\n14 aug\n- -\n", 0);
+('5k', '-a2 -e - -o 2.2 1.1', "apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\n", "06 apr\n14 aug\n- -\n", 0);
+
+('5l', '-a1 -e - -o 2.2 1.1', "apr 15\naug 20\ndec 18\n", "apr 06\naug 14\ndate\nfeb 15\n", "06 apr\n14 aug\n- dec\n", 0);
+('5m', '-a2 -e - -o 2.2 1.1', "apr 15\naug 20\ndec 18\n", "apr 06\naug 14\ndate\nfeb 15\n", "06 apr\n14 aug\n- -\n15 -\n", 0);
+
+('6a', '-e -', "a 1\nb 2\nd 4\n", "a 21\nb 22\nc 23\nf 26\n", "a 1 21\nb 2 22\n", 0);
+('6b', '-a1 -e -', "a 1\nb 2\nd 4\n", "a 21\nb 22\nc 23\nf 26\n", "a 1 21\nb 2 22\nd 4\n", 0);
+('6c', '-a1 -e -', "a 21\nb 22\nc 23\nf 26\n", "a 1\nb 2\nd 4\n", "a 21 1\nb 22 2\nc 23\nf 26\n", 0);