Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore:fix scalafmt HeadersSpec error because illegal unicode #297

Merged
merged 1 commit into from
Apr 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class HeadersSpec extends AnyWordSpec with Matchers {
("my favorite character is %", "my favorite character is %25"),
("my favorite character is 𐀁", "my favorite character is %F0%90%80%81"),
// \ud801 is a high surrogate, a lone surrogate character is getting decoded as ? with UTF-8
("my favorite character is \ud801", "my favorite character is ?"),
(s"my favorite character is ${0xD801.toChar}", "my favorite character is ?"),
// \udc37 is a low surrogate, a lone surrogate character is getting decoded as ? with UTF-8
("my favorite character is \udc37", "my favorite character is ?"),
(s"my favorite character is ${0xDC37.toChar}", "my favorite character is ?"),
// a pair of surrogate characters is fine
("my favorite character is " + 0xDBFF.toChar + 0xDFFF.toChar, "my favorite character is %F4%8F%BF%BF"))

Expand Down
Loading