@@ -49,17 +49,17 @@ private[debug] object DebugStepAssert:
49
49
given location : CheckFileLocation = CheckFileLocation (checkFile, allLines.size - lines.size + 1 )
50
50
lines match
51
51
case Nil => acc.reverse
52
- case break(className , lineStr) :: tail =>
52
+ case break(className : String , lineStr : String ) :: tail =>
53
53
val breakpointLine = lineStr.toInt
54
54
val step = DebugStepAssert (Break (className, breakpointLine), checkClassAndLine(className, breakpointLine))
55
55
loop(tail, step :: acc)
56
- case step(pattern) :: tail =>
56
+ case step(pattern : String ) :: tail =>
57
57
val step = DebugStepAssert (Step , checkLineOrMethod(pattern))
58
58
loop(tail, step :: acc)
59
- case next(pattern) :: tail =>
59
+ case next(pattern : String ) :: tail =>
60
60
val step = DebugStepAssert (Next , checkLineOrMethod(pattern))
61
61
loop(tail, step :: acc)
62
- case eval(expr) :: tail0 =>
62
+ case eval(expr : String ) :: tail0 =>
63
63
val (assertion, tail1) = parseEvalAssertion(tail0)
64
64
val step = DebugStepAssert (Eval (expr), assertion)
65
65
loop(tail1, step :: acc)
@@ -78,8 +78,8 @@ private[debug] object DebugStepAssert:
78
78
lines match
79
79
case Nil => throw new Exception (s " Missing result or error " )
80
80
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)
83
83
case multiLineError() :: tail0 =>
84
84
val (expected, tail1) = tail0.span(_.startsWith(" " ))
85
85
(checkError(expected.map(_.stripPrefix(" " ))), tail1)
0 commit comments