tests: join: check -i prints each line's own key

* tests/join/join.pl (@tv): Add test cases for -i with keys that
differ only in case, with the default output and with -o 0.
https://github.com/uutils/coreutils/pull/15635

Link: https://github.com/coreutils/coreutils/pull/391
This commit is contained in:
Sylvestre Ledru authored and Pádraig Brady committed 2026-10-24 16:15:03 +01:00
1 parent b67fe9d035
commit d57d8187ca
1 file changed
+7
+7
View File
@@ -167,6 +167,13 @@ my @tv = (
['multi-o-auto-mixed', '-o auto -o 1.3',
["k p q\n", "k y z\n"], "q\n", 0],
# With -i, keys that differ only in case match, but each output line
# shows the key of its own file-1 line.
['ignore-case-1', '-i',
["B x\nb y\n", "b z\n"], "B x z\nb y z\n", 0],
['ignore-case-2', '-i -o 0',
["B\nb\n", "B\n"], "B\nb\n", 0],
# For -v2, print the match field correctly with the default output format,
# when that match field is different between file 1 and file 2. Fixed in 8.10
['v2-order', '-v2 -2 2', ["", "2 1\n"], "1 2\n", 0],