diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-08-15 20:15:42 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-08-15 20:15:42 +0200 |
| commit | eaa8ee40aa049040e9f9bb1d967754102742c227 (patch) | |
| tree | e545bd4572dc8b73e7e02ca706cbc41b0bca049f | |
| parent | 21afddefd2587daeb86317c134221e5b8c897445 (diff) | |
| download | busybox-w32-eaa8ee40aa049040e9f9bb1d967754102742c227.tar.gz busybox-w32-eaa8ee40aa049040e9f9bb1d967754102742c227.tar.bz2 busybox-w32-eaa8ee40aa049040e9f9bb1d967754102742c227.zip | |
cut: fix testsuite
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -rwxr-xr-x | testsuite/cut.tests | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/cut.tests b/testsuite/cut.tests index d705b91c3..2458c019c 100755 --- a/testsuite/cut.tests +++ b/testsuite/cut.tests | |||
| @@ -66,6 +66,7 @@ testing "cut with -d -f(a) -s" "cut -da -f3 -s input" "n\nsium:Jim\n\ncion:Ed\n" | |||
| 66 | testing "cut with -d -f(a) -s -n" "cut -da -f3 -s -n input" "n\nsium:Jim\n\ncion:Ed\n" "$input" "" | 66 | testing "cut with -d -f(a) -s -n" "cut -da -f3 -s -n input" "n\nsium:Jim\n\ncion:Ed\n" "$input" "" |
| 67 | 67 | ||
| 68 | # substitute for awk | 68 | # substitute for awk |
| 69 | optional FEATURE_CUT_REGEX | ||
| 69 | testing "cut -DF" "cut -DF 2,7,5" \ | 70 | testing "cut -DF" "cut -DF 2,7,5" \ |
| 70 | "said and your\nare\nis demand. supply\nforecast :\nyou you better,\n\nEm: Took hate\n" "" \ | 71 | "said and your\nare\nis demand. supply\nforecast :\nyou you better,\n\nEm: Took hate\n" "" \ |
| 71 | "Bother, said Pooh. It's your husband, and he has a gun. | 72 | "Bother, said Pooh. It's your husband, and he has a gun. |
| @@ -75,6 +76,7 @@ Weather forecast for tonight : dark. | |||
| 75 | Apple: you can buy better, but you can't pay more. | 76 | Apple: you can buy better, but you can't pay more. |
| 76 | Subcalifragilisticexpialidocious. | 77 | Subcalifragilisticexpialidocious. |
| 77 | Auntie Em: Hate you, hate Kansas. Took the dog. Dorothy." | 78 | Auntie Em: Hate you, hate Kansas. Took the dog. Dorothy." |
| 79 | SKIP= | ||
| 78 | 80 | ||
| 79 | testing "cut empty field" "cut -d ':' -f 1-3" "a::b\n" "" "a::b\n" | 81 | testing "cut empty field" "cut -d ':' -f 1-3" "a::b\n" "" "a::b\n" |
| 80 | testing "cut empty field 2" "cut -d ':' -f 3-5" "b::c\n" "" "a::b::c:d\n" | 82 | testing "cut empty field 2" "cut -d ':' -f 3-5" "b::c\n" "" "a::b::c:d\n" |
