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

test(quoting_style): Fix tests

This commit is contained in:
Dorian Péron 2024-07-22 15:52:51 +02:00
parent e292e05f57
commit 2a1558f741

View file

@ -611,8 +611,8 @@ mod tests {
("one\ntwo", "literal-show"), ("one\ntwo", "literal-show"),
("one\\ntwo", "escape"), ("one\\ntwo", "escape"),
("\"one\\ntwo\"", "c"), ("\"one\\ntwo\"", "c"),
("one?two", "shell"), ("'one?two'", "shell"),
("one\ntwo", "shell-show"), ("'one\ntwo'", "shell-show"),
("'one?two'", "shell-always"), ("'one?two'", "shell-always"),
("'one\ntwo'", "shell-always-show"), ("'one\ntwo'", "shell-always-show"),
("'one'$'\\n''two'", "shell-escape"), ("'one'$'\\n''two'", "shell-escape"),
@ -655,9 +655,9 @@ mod tests {
"\"\\000\\001\\002\\003\\004\\005\\006\\a\\b\\t\\n\\v\\f\\r\\016\\017\"", "\"\\000\\001\\002\\003\\004\\005\\006\\a\\b\\t\\n\\v\\f\\r\\016\\017\"",
"c", "c",
), ),
("????????????????", "shell"), ("'????????????????'", "shell"),
( (
"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F", "'\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F'",
"shell-show", "shell-show",
), ),
("'????????????????'", "shell-always"), ("'????????????????'", "shell-always"),