Skip to content

Commit 149d2cd

Browse files
committed
Check that worksheets capture stderr
1 parent 8d442c8 commit 149d2cd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

language-server/test/dotty/tools/languageserver/WorksheetTest.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,4 +206,9 @@ class WorksheetTest {
206206
.evaluate(m1, "1:Hello, world!")
207207
}
208208

209+
@Test def outputOnStdErr(): Unit = {
210+
ws"""${m1}System.err.println("Oh no")""".withSource
211+
.evaluate(m1, "1:Oh no")
212+
}
213+
209214
}

0 commit comments

Comments
 (0)