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

wc: Swap order of characters and bytes in output

This way it matches GNU and busybox.
This commit is contained in:
Jan Verbeek 2021-08-25 14:40:17 +02:00 committed by Michael Debertol
parent 657a04f706
commit d0c0564947
2 changed files with 9 additions and 9 deletions

View file

@ -53,7 +53,7 @@ fn test_utf8() {
.args(&["-lwmcL"])
.pipe_in_fixture("UTF_8_test.txt")
.run()
.stdout_is(" 303 2119 23025 22457 79\n");
.stdout_is(" 303 2119 22457 23025 79\n");
}
#[test]
@ -62,7 +62,7 @@ fn test_utf8_extra() {
.arg("-lwmcL")
.pipe_in_fixture("UTF_8_weirdchars.txt")
.run()
.stdout_is(" 25 87 513 442 48\n");
.stdout_is(" 25 87 442 513 48\n");
}
#[test]