Skip to content

Commit 68187c4

Browse files
committed
Add test
1 parent cc53c37 commit 68187c4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/src/test/kotlin/at/bitfire/synctools/icalendar/validation/ICalPreprocessorTest.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ class ICalPreprocessorTest {
6262
}
6363
}
6464

65+
@Test
66+
fun testPreprocessStream_joinsLinesCorrectly() {
67+
val result = processor.preprocessStream(StringReader("BEGIN:VCALENDAR\nBEGIN:VEVENT")).readText()
68+
assertEquals("BEGIN:VCALENDAR\r\nBEGIN:VEVENT\r\n", result)
69+
}
70+
6571
@Test
6672
fun testPreprocessStream_runsApplyPreprocessors() {
6773
val processor = spyk<ICalPreprocessor>()

0 commit comments

Comments
 (0)