Skip to content

Commit 3f951d6

Browse files
committed
tests: fix LineReaderTest
- it must assume always unixline
1 parent c6128f0 commit 3f951d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

selfie-lib/src/jvmTest/kotlin/com/diffplug/selfie/LineReaderTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ class LineReaderTest {
4949
}
5050

5151
@Test
52-
fun shouldGetOSLineSeparatorWhenThereIsNone() {
52+
fun shouldGetUnixLineSeparatorWhenThereIsNone() {
5353
val reader = LineReader.forBinary("This is a new line".encodeToByteArray())
54-
reader.unixNewlines() shouldBe System.lineSeparator().equals("\n")
54+
reader.unixNewlines() shouldBe true
5555
reader.readLine() shouldBe "This is a new line"
5656
}
5757

0 commit comments

Comments
 (0)