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

tac: support null separator

This commit is contained in:
Jeffrey Finkelstein 2021-07-25 14:25:41 -04:00
parent 24b1822cba
commit d74fb62df7
2 changed files with 15 additions and 10 deletions

View file

@ -73,3 +73,12 @@ fn test_invalid_input() {
fn test_no_line_separators() {
new_ucmd!().pipe_in("a").succeeds().stdout_is("a");
}
#[test]
fn test_null_separator() {
new_ucmd!()
.args(&["-s", ""])
.pipe_in("a\0b\0")
.succeeds()
.stdout_is("b\0a\0");
}