mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Added tests
This commit is contained in:
@@ -725,3 +725,16 @@ fn files0_from_dir() {
|
||||
.fails()
|
||||
.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");
|
||||
}
|
||||
Reference in New Issue
Block a user