mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
wc: more tests and fixes
My previous commits meant to bring our wc's output and behavior in line with GNU's. There should be tests that check for these changes! I found a stupid bug in my own changes, I was not adding 1 to the indexes produced by .enumerate() when printing errors.
This commit is contained in:
parent
c4b53a44b5
commit
e5b46ea3eb
5 changed files with 199 additions and 35 deletions
5
tests/fixtures/wc/alice in wonderland.txt
vendored
Normal file
5
tests/fixtures/wc/alice in wonderland.txt
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
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?"
|
0
tests/fixtures/wc/dir with spaces/.keep
vendored
Normal file
0
tests/fixtures/wc/dir with spaces/.keep
vendored
Normal file
BIN
tests/fixtures/wc/files0 with nonexistent.txt
vendored
Normal file
BIN
tests/fixtures/wc/files0 with nonexistent.txt
vendored
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue