Skip to content

Commit acb6574

Browse files
committed
Update J2K test to always use linefeeds
1 parent 7adbb24 commit acb6574

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/test/kotlin/org/javacs/kt/JavaToKotlinTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ class JavaToKotlinTest : LanguageServerTestFixture("j2k") {
1818
.toFile()
1919
.readText()
2020
.trim()
21+
.replace("\r\n", "\n")
2122
val compiler = languageServer.classPath.compiler
22-
val convertedKotlinCode = convertJavaToKotlin(javaCode, compiler)
23+
val convertedKotlinCode = convertJavaToKotlin(javaCode, compiler).replace("\r\n", "\n")
2324
assertThat(convertedKotlinCode, equalTo(expectedKotlinCode))
2425
}
2526
}

0 commit comments

Comments
 (0)