Skip to content

Commit

Permalink
Use better testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
allaboutevemirolive committed Dec 21, 2023
1 parent 3e61872 commit f874788
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
15 changes: 9 additions & 6 deletions tests/by-util/test_expand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
",
);
}
5 changes: 0 additions & 5 deletions tests/fixtures/expand/alice_in_wonderland.txt

This file was deleted.

0 comments on commit f874788

Please sign in to comment.