mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-16 19:56:17 +00:00
commit
775588fb18
2 changed files with 29 additions and 1 deletions
|
@ -58,4 +58,23 @@ fn test_order_same() {
|
|||
assert_eq!(output1, output2);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_output_conflict_options() {
|
||||
for option in ["-i", "-T", "-P"] {
|
||||
new_ucmd!().arg("--output=source").arg(option).fails();
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_output_option() {
|
||||
new_ucmd!().arg("--output").succeeds();
|
||||
new_ucmd!().arg("--output=source,target").succeeds();
|
||||
new_ucmd!().arg("--output=invalid_option").fails();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_type_option() {
|
||||
new_ucmd!().args(&["-t", "ext4", "-t", "ext3"]).succeeds();
|
||||
}
|
||||
|
||||
// ToDO: more tests...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue