mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-15 19:36:16 +00:00
add whitespace delimiter option
This commit is contained in:
parent
01153a701f
commit
f6a0abaee3
4 changed files with 253 additions and 25 deletions
|
@ -81,6 +81,16 @@ fn test_field_sequence() {
|
|||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_whitespace_delimited() {
|
||||
for param in ["-w"] {
|
||||
new_ucmd!()
|
||||
.args(&[param, "-f", COMPLEX_SEQUENCE.sequence, INPUT])
|
||||
.succeeds()
|
||||
.stdout_only_fixture("whitespace_delimited.expected");
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_specify_delimiter() {
|
||||
for param in ["-d", "--delimiter", "--del"] {
|
||||
|
|
5
tests/fixtures/cut/whitespace_delimited.expected
vendored
Normal file
5
tests/fixtures/cut/whitespace_delimited.expected
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
foo:bar:baz:qux:quux
|
||||
one:two:three:four:five:six:seven
|
||||
alpha:beta:gamma:delta:epsilon:zeta:eta:theta:iota:kappa:lambda:mu
|
||||
the quick fox over the dog
|
||||
sally sells down the seashore are the seashells sally sells
|
Loading…
Add table
Add a link
Reference in a new issue