Skip to content

Commit 3bfebf8

Browse files
committed
fixed compilation error
1 parent bbc892b commit 3bfebf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlin-libraries-2/src/test/kotlin/com/baeldung/csv/pure/PureKotlinCsvOperationsUnitTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ internal class PureKotlinCsvOperationsUnitTest {
1212
fun when_file_is_read_then_domain_objects_are_populated() {
1313
val movies = readCsv(javaClass.getResourceAsStream("deniro.csv")!!)
1414
assertEquals(87, movies.size)
15-
assertEquals("Dear America: Letters Home From Vietnam", movies.maxBy { it.score }.title)
15+
assertEquals("Dear America: Letters Home From Vietnam", movies.maxByOrNull { it.score }?.title)
1616
}
1717

1818
@Test

0 commit comments

Comments
 (0)