From f874788b2c4900ce52f052b2ed6cf3a6e9acecb0 Mon Sep 17 00:00:00 2001 From: allaboutevemirolive Date: Thu, 21 Dec 2023 10:48:58 +0200 Subject: [PATCH] Use better testcase --- tests/by-util/test_expand.rs | 15 +++++++++------ tests/fixtures/expand/alice_in_wonderland.txt | 5 ----- 2 files changed, 9 insertions(+), 11 deletions(-) delete mode 100644 tests/fixtures/expand/alice_in_wonderland.txt diff --git a/tests/by-util/test_expand.rs b/tests/by-util/test_expand.rs index a1173c496..1e26b3273 100644 --- a/tests/by-util/test_expand.rs +++ b/tests/by-util/test_expand.rs @@ -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 characters +int main() { + // * next line has both a leading & trailing tab + // with tabs=> + return 0; +} +", ); } diff --git a/tests/fixtures/expand/alice_in_wonderland.txt b/tests/fixtures/expand/alice_in_wonderland.txt deleted file mode 100644 index a95562a1c..000000000 --- a/tests/fixtures/expand/alice_in_wonderland.txt +++ /dev/null @@ -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?"