mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
tests: correct a test case for split
Correct the `test_split::test_suffixes_exhausted` test case so that it actually exercises the intended behavior of `split`. Previously, the test fixture contained 26 bytes. After this commit, the test fixture contains 27 bytes. When using a suffix width of one, only 26 filenames should be available when naming chunk files---one for each lowercase ASCII letter. This commit ensures that the filenames will be exhausted as intended by the test.
This commit is contained in:
parent
b31d63eaa9
commit
ca7af808d5
2 changed files with 2 additions and 2 deletions
|
@ -438,7 +438,7 @@ fn test_number() {
|
|||
assert_eq!(file_read("xab"), "fghij");
|
||||
assert_eq!(file_read("xac"), "klmno");
|
||||
assert_eq!(file_read("xad"), "pqrst");
|
||||
assert_eq!(file_read("xae"), "uvwxyz");
|
||||
assert_eq!(file_read("xae"), "uvwxyz\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
2
tests/fixtures/split/asciilowercase.txt
vendored
2
tests/fixtures/split/asciilowercase.txt
vendored
|
@ -1 +1 @@
|
|||
abcdefghijklmnopqrstuvwxyz
|
||||
abcdefghijklmnopqrstuvwxyz
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue