Skip to content

Commit 471a059

Browse files
committed
Fix worksheet tests for Windows
1 parent e6b3abd commit 471a059

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import org.eclipse.lsp4j.{CompletionItemKind, DocumentHighlightKind, SymbolKind}
66
import dotty.tools.languageserver.util.Code._
77
import dotty.tools.languageserver.util.embedded.CodeMarker
88

9+
import java.lang.System.{lineSeparator => nl}
10+
911
class WorksheetTest {
1012

1113
@Test def evaluateExpression: Unit = {
@@ -68,7 +70,7 @@ class WorksheetTest {
6870

6971
@Test def produceMultilineOutput: Unit = {
7072
ws"""${m1}1 to 3 foreach println""".withSource
71-
.evaluate(m1, "1:1\n2\n3")
73+
.evaluate(m1, s"1:1${nl}2${nl}3")
7274
}
7375

7476
@Test def patternMatching0: Unit = {
@@ -81,7 +83,7 @@ class WorksheetTest {
8183

8284
@Test def patternMatching1: Unit = {
8385
ws"""${m1}val (foo, bar) = (1, 2)""".withSource
84-
.evaluate(m1, "1:val foo: Int = 1\nval bar: Int = 2")
86+
.evaluate(m1, s"1:val foo: Int = 1${nl}val bar: Int = 2")
8587
}
8688

8789
@Test def evaluationException: Unit = {

0 commit comments

Comments
 (0)