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

comm: allow multiple occurrence of -z

This commit is contained in:
Daniel Hofstetter 2023-03-02 16:18:42 +01:00
parent b9bca794cc
commit a7a55c7433
2 changed files with 11 additions and 0 deletions

View file

@ -105,6 +105,16 @@ fn zero_terminated() {
}
}
#[test]
fn zero_terminated_provided_multiple_times() {
for param in ["-z", "--zero-terminated"] {
new_ucmd!()
.args(&[param, param, param, "a_nul", "b_nul"])
.succeeds()
.stdout_only_fixture("ab_nul.expected");
}
}
#[test]
fn zero_terminated_with_total() {
for param in ["-z", "--zero-terminated"] {