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

fix duplicate flags

This commit is contained in:
allaboutevemirolive 2023-12-20 23:30:46 +02:00
parent c20f009da4
commit 3e6187269e
3 changed files with 20 additions and 0 deletions

View file

@ -392,3 +392,17 @@ fn test_comma_with_plus_4() {
// 01234567890
.stdout_is("a b c");
}
#[test]
fn test_args_override() {
new_ucmd!()
.args(&["-i", "-i", "alice_in_wonderland.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",
);
}