8000 Add more tests for Unicode case-insensitivity in regexes. by sjrd · Pull Request #5198 · scala-js/scala-js · GitHub
[go: up one dir, main page]

Skip to content

Add more tests for Unicode case-insensitivity in regexes. #5198

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

Merged
merged 2 commits into from
Jun 25, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Do not rely on Formatter in the debug prints of RegexEngineTest.
`Formatter` is an entire beast of its own. It is a poor fit for
the debugging output of another area of the test suite.
  • Loading branch information
sjrd committed Jun 25, 2025
commit 5696a1a533b0169a5be484c659d96e36a5db5b9c
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ class RegexEngineTest {

private def debugEscape(pattern: String): String = {
pattern.flatMap {
case '\t' => "`t"
case '\n' => "`n"
case '\r' => "`r"
case c if c < ' ' => "`x%02X".format(c.toInt)
case c => c.toString()
case '\t' => "`t"
case '\n' => "`n"
case '\r' => "`r"
case c if c < 0x10 => "`x0" + c.toInt.toHexString
case c if c < ' ' => "`x" + c.toInt.toHexString
case c => c.toString()
}
}

Expand Down
0