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

Use better testcase

This commit is contained in:
allaboutevemirolive 2023-12-21 10:48:58 +02:00
parent 3e6187269e
commit f874788b2c
2 changed files with 9 additions and 11 deletions

View file

@ -396,13 +396,16 @@ fn test_comma_with_plus_4() {
#[test] #[test]
fn test_args_override() { fn test_args_override() {
new_ucmd!() new_ucmd!()
.args(&["-i", "-i", "alice_in_wonderland.txt"]) .args(&["-i", "-i", "with-trailing-tab.txt"])
.run() .run()
.stdout_is( .stdout_is(
"Alice was beginning to get very tired of sitting by\n\ "// !note: file contains significant whitespace
her sister on the bank, and of having nothing to do: once or twice\n\ // * indentation uses <TAB> characters
she had peeped into the book her sister was reading, but it had no\n\ int main() {
pictures or conversations in it, \"and what is the use of a book,\"\n\ // * next line has both a leading & trailing tab
thought Alice \"without pictures or conversation?\"\n", // with tabs=>
return 0;
}
",
); );
} }

View file

@ -1,5 +0,0 @@
Alice was beginning to get very tired of sitting by
her sister on the bank, and of having nothing to do: once or twice
she had peeped into the book her sister was reading, but it had no
pictures or conversations in it, "and what is the use of a book,"
thought Alice "without pictures or conversation?"