Skip to content

Commit ec52238

Browse files
committed
Update test code
1 parent c8b4100 commit ec52238

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

compiler/test/dotty/tools/debug/DebugStepAssert.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@ private[debug] object DebugStepAssert:
4949
given location: CheckFileLocation = CheckFileLocation(checkFile, allLines.size - lines.size + 1)
5050
lines match
5151
case Nil => acc.reverse
52-
case break(className , lineStr) :: tail =>
52+
case break(className: String, lineStr: String) :: tail =>
5353
val breakpointLine = lineStr.toInt
5454
val step = DebugStepAssert(Break(className, breakpointLine), checkClassAndLine(className, breakpointLine))
5555
loop(tail, step :: acc)
56-
case step(pattern) :: tail =>
56+
case step(pattern: String) :: tail =>
5757
val step = DebugStepAssert(Step, checkLineOrMethod(pattern))
5858
loop(tail, step :: acc)
59-
case next(pattern) :: tail =>
59+
case next(pattern: String) :: tail =>
6060
val step = DebugStepAssert(Next, checkLineOrMethod(pattern))
6161
loop(tail, step :: acc)
62-
case eval(expr) :: tail0 =>
62+
case eval(expr: String) :: tail0 =>
6363
val (assertion, tail1) = parseEvalAssertion(tail0)
6464
val step = DebugStepAssert(Eval(expr), assertion)
6565
loop(tail1, step :: acc)
@@ -78,8 +78,8 @@ private[debug] object DebugStepAssert:
7878
lines match
7979
case Nil => throw new Exception(s"Missing result or error")
8080
case trailing() :: tail => parseEvalAssertion(tail)
81-
case result(expected) :: tail => (checkResult(expected), tail)
82-
case error(expected) :: tail => (checkError(Seq(expected)), tail)
81+
case result(expected: String) :: tail => (checkResult(expected), tail)
82+
case error(expected: String) :: tail => (checkError(Seq(expected)), tail)
8383
case multiLineError() :: tail0 =>
8484
val (expected, tail1) = tail0.span(_.startsWith(" "))
8585
(checkError(expected.map(_.stripPrefix(" "))), tail1)

compiler/test/dotty/tools/dotc/profile/TraceNameManglingTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class TraceNameManglingTest extends DottyTest {
2727
}
2828

2929
@Test def escapeBackslashes(): Unit = {
30-
val isWindows = sys.props("os.name").toLowerCase(Locale.ROOT).nn.contains("windows")
30+
val isWindows = sys.props("os.name").nn.toLowerCase(Locale.ROOT).nn.contains("windows")
3131
// It is not possible to create a file with backslash in name on Windows
3232
val filename = if isWindows then "test.scala" else "\\.scala"
3333
checkTraceEvents(

0 commit comments

Comments
 (0)