Skip to content

Commit b6737a8

Browse files
committed
small code change to address review
1 parent dc8a4d8 commit b6737a8

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

compiler/test/dotty/tools/repl/LoadTests.scala

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import org.junit.{Test, BeforeClass, AfterClass}
88
import org.junit.Assert.assertEquals
99

1010
class LoadTests extends ReplTest {
11-
import LoadTests._
11+
import LoadTests._, ReplCompilerTests._
1212

1313
@Test def helloworld = loadTest(
1414
file = """|def helloWorld = "Hello, World!"
@@ -83,13 +83,4 @@ object LoadTests {
8383
file
8484
}
8585

86-
private val pattern = Pattern.compile("\\r[\\n]?|\\n");
87-
88-
// Ensure 'expected' and 'actual' contain the same line separator(s).
89-
private def assertMultiLineEquals(expected: String, actual: String): Unit = {
90-
val expected0 = pattern.matcher(expected).replaceAll(System.lineSeparator)
91-
val actual0 = pattern.matcher(actual).replaceAll(System.lineSeparator)
92-
assertEquals(expected0, actual0)
93-
}
94-
9586
}

compiler/test/dotty/tools/repl/ReplCompilerTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ object ReplCompilerTests {
190190
private val pattern = Pattern.compile("\\r[\\n]?|\\n");
191191

192192
// Ensure 'expected' and 'actual' contain the same line separator(s).
193-
private def assertMultiLineEquals(expected: String, actual: String): Unit = {
193+
def assertMultiLineEquals(expected: String, actual: String): Unit = {
194194
val expected0 = pattern.matcher(expected).replaceAll(System.lineSeparator)
195195
val actual0 = pattern.matcher(actual).replaceAll(System.lineSeparator)
196196
assertEquals(expected0, actual0)

0 commit comments

Comments
 (0)