aboutsummaryrefslogtreecommitdiff
path: root/testsuite/cut.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/cut.tests')
-rwxr-xr-xtestsuite/cut.tests11
1 files changed, 9 insertions, 2 deletions
diff --git a/testsuite/cut.tests b/testsuite/cut.tests
index c335f824b..46ef545d7 100755
--- a/testsuite/cut.tests
+++ b/testsuite/cut.tests
@@ -90,7 +90,14 @@ Subcalifragilisticexpialidocious.
90Auntie Em: Hate you, hate Kansas. Took the dog. Dorothy." 90Auntie Em: Hate you, hate Kansas. Took the dog. Dorothy."
91SKIP= 91SKIP=
92 92
93testing "cut empty field" "cut -d ':' -f 1-3" "a::b\n" "" "a::b\n" 93testing "cut empty field" "cut -d ':' -f 1-3" \
94testing "cut empty field 2" "cut -d ':' -f 3-5" "b::c\n" "" "a::b::c:d\n" 94 "a::b\n" \
95 "" "a::b\n"
96testing "cut empty field 2" "cut -d ':' -f 3-5" \
97 "b::c\n" \
98 "" "a::b::c:d\n"
99testing "cut non-existing field" "cut -d ':' -f1,3" \
100 "1\n" \
101 "" "1:\n"
95 102
96exit $FAILCOUNT 103exit $FAILCOUNT