summaryrefslogtreecommitdiff
path: root/tests/cut
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-07-26 04:06:37 +0000
committerJim Meyering <jim@meyering.net>1998-07-26 04:06:37 +0000
commit5c4cb177efd8b83fdf333f1a054cc76b89f21339 (patch)
tree2ff5e425ddd15fdf8f8a211a30034e5856c9e00f /tests/cut
parent71a3fc7989cb6067c52083a305cdc700b2453f72 (diff)
downloadcoreutils-5c4cb177efd8b83fdf333f1a054cc76b89f21339.tar.xz
Add tests for new --output-delimiter option,
as well as for NUL input delimiter (--delimiter='').
Diffstat (limited to 'tests/cut')
-rwxr-xr-xtests/cut/Test.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/cut/Test.pm b/tests/cut/Test.pm
index fc6893fc3..2e6399c5d 100755
--- a/tests/cut/Test.pm
+++ b/tests/cut/Test.pm
@@ -64,6 +64,11 @@ my @tv = (
['empty-f2', '-f2', "", "", 0],
+['o-delim', '-d: -f2,3 --out=_', "a:b:c\n", "b_c\n", 0],
+['nul-idelim', "-d '' -f2,3 --out=_", "a\0b\0c\n", "b_c\n", 0],
+['nul-odelim', "-d: -f2,3 --out=", "a:b:c\n", "b\0c\n", 0],
+['multichar-od', "-d: -f2,3 --out=_._", "a:b:c\n", "b_._c\n", 0],
+
);
sub test_vector