Skip to content

Commit

Permalink
Test evaluation with -no-indent
Browse files Browse the repository at this point in the history
  • Loading branch information
adpi2 committed Sep 4, 2024
1 parent 607f3f4 commit c03a7d7
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2748,4 +2748,24 @@ abstract class ScalaEvaluationTests(scalaVersion: ScalaVersion) extends DebugTes
Evaluation.success("c.x", "x")
)
}

test("evaluation with -no-indent") {
assume(scalaVersion.isScala3)
val source =
"""|package example
|
|object Main {
| def main(args: Array[String]): Unit =
| println(1 + 2)
| val x = 1
| x + 1
|}
|""".stripMargin
implicit val debuggee: TestingDebuggee =
TestingDebuggee.mainClass(source, "example.Main", scalaVersion, Seq("-no-indent"))
check(
Breakpoint(5),
Evaluation.success("1 + 2", 3)
)
}
}

0 comments on commit c03a7d7

Please sign in to comment.