mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 14:52:41 +00:00
add test cases to cover cut -w failing options
This commit is contained in:
parent
17c48e13f4
commit
11e64958d6
1 changed files with 24 additions and 0 deletions
|
@ -91,6 +91,30 @@ fn test_whitespace_delimited() {
|
|||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_whitespace_with_explicit_delimiter() {
|
||||
new_ucmd!()
|
||||
.args(&["-w", "-f", COMPLEX_SEQUENCE.sequence, "-d:"])
|
||||
.fails()
|
||||
.code_is(1);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_whitespace_with_byte() {
|
||||
new_ucmd!()
|
||||
.args(&["-w", "-b", COMPLEX_SEQUENCE.sequence])
|
||||
.fails()
|
||||
.code_is(1);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_whitespace_with_char() {
|
||||
new_ucmd!()
|
||||
.args(&["-c", COMPLEX_SEQUENCE.sequence, "-w"])
|
||||
.fails()
|
||||
.code_is(1);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_specify_delimiter() {
|
||||
for param in ["-d", "--delimiter", "--del"] {
|
||||
|
|
Loading…
Reference in a new issue