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