mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
test(cksum): add tests for -z/--zero
This commit is contained in:
@@ -1383,3 +1383,22 @@ fn test_check_failed_to_read() {
|
||||
.stdout_is("dir: FAILED open or read\n")
|
||||
.stderr_contains("cksum: WARNING: 1 listed file could not be read");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_zero_multiple_file() {
|
||||
new_ucmd!()
|
||||
.arg("-z")
|
||||
.arg("alice_in_wonderland.txt")
|
||||
.arg("lorem_ipsum.txt")
|
||||
.succeeds()
|
||||
.stdout_is_fixture("zero_multiple_file.expected");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_zero_single_file() {
|
||||
new_ucmd!()
|
||||
.arg("--zero")
|
||||
.arg("alice_in_wonderland.txt")
|
||||
.succeeds()
|
||||
.stdout_is_fixture("zero_single_file.expected");
|
||||
}
|
||||
|
||||
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user