Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5696a1a

Browse files
committed
Do not rely onFormatter in the debug prints ofRegexEngineTest.
`Formatter` is an entire beast of its own. It is a poor fit forthe debugging output of another area of the test suite.
1 parent43902c4 commit5696a1a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

‎test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/util/regex/RegexEngineTest.scala

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,12 @@ class RegexEngineTest {
5454

5555
privatedefdebugEscape(pattern:String):String= {
5656
pattern.flatMap {
57-
case'\t'=>"`t"
58-
case'\n'=>"`n"
59-
case'\r'=>"`r"
60-
case cif c<' '=>"`x%02X".format(c.toInt)
61-
case c=> c.toString()
57+
case'\t'=>"`t"
58+
case'\n'=>"`n"
59+
case'\r'=>"`r"
60+
case cif c<0x10=>"`x0"+ c.toInt.toHexString
61+
case cif c<' '=>"`x"+ c.toInt.toHexString
62+
case c=> c.toString()
6263
}
6364
}
6465

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp