projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71a3fc7
)
Add tests for new --output-delimiter option,
author
Jim Meyering
<jim@meyering.net>
Sun, 26 Jul 1998 04:06:37 +0000
(
04:06
+0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 26 Jul 1998 04:06:37 +0000
(
04:06
+0000)
as well as for NUL input delimiter (--delimiter='').
tests/cut/Test.pm
patch
|
blob
|
history
diff --git
a/tests/cut/Test.pm
b/tests/cut/Test.pm
index
fc6893f
..
2e6399c
100755
(executable)
--- 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