File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
plugins/dataframe-gradle-plugin/src/test/kotlin/org/jetbrains/dataframe/gradle Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import io.kotest.assertions.throwables.shouldThrowAny
7
7
import io.kotest.matchers.shouldBe
8
8
import kotlinx.serialization.SerializationException
9
9
import org.jetbrains.kotlinx.dataframe.DataFrame
10
+ import org.jetbrains.kotlinx.dataframe.api.isEmpty
10
11
import org.jetbrains.kotlinx.dataframe.io.read
11
12
import org.jetbrains.kotlinx.dataframe.io.readSqlTable
12
13
import org.junit.Test
@@ -42,9 +43,7 @@ class DataFrameReadTest {
42
43
fun `file with invalid csv` () {
43
44
val temp = Files .createTempDirectory(" " ).toFile()
44
45
val invalidCsv = File (temp, " test.csv" ).also { it.writeText(" " ) }
45
- shouldThrow<IndexOutOfBoundsException > {
46
- DataFrame .read(invalidCsv)
47
- }
46
+ DataFrame .read(invalidCsv).isEmpty() shouldBe true
48
47
}
49
48
50
49
@Test
You can’t perform that action at this time.
0 commit comments