We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
toDataFrame
1 parent 1b3bf1d commit 949a8d7Copy full SHA for 949a8d7
tests/src/test/kotlin/org/jetbrains/kotlinx/dataframe/api/toDataFrame.kt
@@ -183,4 +183,18 @@ class CreateDataFrameTests {
183
col[IncompatibleVersionErrorData<*>::actual].type() shouldBe typeOf<Any>()
184
col[IncompatibleVersionErrorData<*>::expected].type() shouldBe typeOf<Any>()
185
}
186
+
187
+ interface Named {
188
+ val name: String get() = "default impl"
189
+ }
190
191
+ class Data(override val name: String) : Named
192
193
+ @Test
194
+ fun simpleInheritance() {
195
+ val name = "temp"
196
+ val df = listOf(Data(name)).toDataFrame(maxDepth = 1)
197
198
+ df["name"][0] shouldBe name
199
200
0 commit comments