mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Added tests
This commit is contained in:
parent
bd22aba03b
commit
cae113c237
1 changed files with 13 additions and 0 deletions
|
@ -725,3 +725,16 @@ fn files0_from_dir() {
|
||||||
.fails()
|
.fails()
|
||||||
.stderr_only(dir_err!("-"));
|
.stderr_only(dir_err!("-"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_args_override() {
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["-ll", "-l", "alice_in_wonderland.txt"])
|
||||||
|
.run()
|
||||||
|
.stdout_is("5 alice_in_wonderland.txt\n");
|
||||||
|
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["--total=always", "--total=never", "alice_in_wonderland.txt"])
|
||||||
|
.run()
|
||||||
|
.stdout_is(" 5 57 302 alice_in_wonderland.txt\n");
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue