Skip to content

Commit 8775fdf

Browse files
committed
Add test for #131
1 parent 4f0e50a commit 8775fdf

File tree

1 file changed

+11
-0
lines changed
  • core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/testSets/person

1 file changed

+11
-0
lines changed

core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/testSets/person/DataFrameTests.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1752,6 +1752,17 @@ class DataFrameTests : BaseTest() {
17521752
res.nrow shouldBe typed.nrow + 2
17531753
}
17541754

1755+
@Test
1756+
fun `append wrong number of arguments`() {
1757+
shouldThrow<IllegalStateException> {
1758+
dataFrameOf("name", "age")(
1759+
"Alice", 15,
1760+
"Bob", 20
1761+
)
1762+
.append("John")
1763+
}
1764+
}
1765+
17551766
@Test
17561767
fun `first last`() {
17571768
typed.first() shouldBe typed[0]

0 commit comments

Comments
 (0)