Skip to content

Commit

Permalink
quoting_style: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RenjiSann committed Jul 22, 2024
1 parent 5653787 commit 1bd5c91
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/uucore/src/lib/features/quoting_style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,8 @@ mod tests {
("one\ntwo", "literal-show"),
("one\\ntwo", "escape"),
("\"one\\ntwo\"", "c"),
("one?two", "shell"),
("one\ntwo", "shell-show"),
("'one?two'", "shell"),
("'one\ntwo'", "shell-show"),
("'one?two'", "shell-always"),
("'one\ntwo'", "shell-always-show"),
("'one'$'\\n''two'", "shell-escape"),
Expand Down Expand Up @@ -641,9 +641,9 @@ mod tests {
"\"\\000\\001\\002\\003\\004\\005\\006\\a\\b\\t\\n\\v\\f\\r\\016\\017\"",
"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-always"),
Expand Down Expand Up @@ -679,9 +679,9 @@ mod tests {
"\"\\020\\021\\022\\023\\024\\025\\026\\027\\030\\031\\032\\033\\034\\035\\036\\037\"",
"c",
),
("????????????????", "shell"),
("'????????????????'", "shell"),
(
"\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F",
"'\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F'",
"shell-show",
),
("'????????????????'", "shell-always"),
Expand All @@ -708,8 +708,8 @@ mod tests {
("\x7F", "literal-show"),
("\\177", "escape"),
("\"\\177\"", "c"),
("?", "shell"),
("\x7F", "shell-show"),
("'?'", "shell"),
("'\x7F'", "shell-show"),
("'?'", "shell-always"),
("'\x7F'", "shell-always-show"),
("''$'\\177'", "shell-escape"),
Expand Down

0 comments on commit 1bd5c91

Please sign in to comment.