1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Added tests

This commit is contained in:
Yykz 2023-12-18 14:12:59 +01:00
parent bd22aba03b
commit cae113c237

View file

@ -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");
}