Skip to content

Commit 089e802

Browse files
committed
fixed tests
1 parent a032e82 commit 089e802

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/codeGen/CodeGenerationTests.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class CodeGenerationTests : BaseTest() {
5959
val generated = codeGen.process(df, ::df)
6060
val typeName = ReplCodeGeneratorImpl.markerInterfacePrefix
6161
val expectedDeclaration = """
62-
@DataSchema(isOpen = false)
62+
@DataSchema
6363
interface $typeName
6464
6565
""".trimIndent() + "\n" + expectedProperties(typeName, typeName)
@@ -84,7 +84,7 @@ class CodeGenerationTests : BaseTest() {
8484
val generated = ReplCodeGenerator.create().process(df[0], property)
8585
val typeName = ReplCodeGeneratorImpl.markerInterfacePrefix
8686
val expectedDeclaration = """
87-
@DataSchema(isOpen = false)
87+
@DataSchema
8888
interface $typeName
8989
9090
""".trimIndent() + "\n" + expectedProperties(typeName, typeName)
@@ -118,7 +118,7 @@ class CodeGenerationTests : BaseTest() {
118118
""".trimIndent()
119119

120120
val declaration2 = """
121-
@DataSchema(isOpen = false)
121+
@DataSchema
122122
interface $type2
123123
124124
val $dfName<$type2>.age: $dataCol<$intName> @JvmName("${type2}_age") get() = this["age"] as $dataCol<$intName>

core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/codeGen/ReplCodeGenTests.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package org.jetbrains.kotlinx.dataframe.codeGen
22

33
import io.kotest.matchers.shouldBe
4-
import io.kotest.matchers.string.shouldBeEmpty
4+
import io.kotest.matchers.string.shouldNotBeEmpty
55
import org.jetbrains.dataframe.impl.codeGen.ReplCodeGenerator
66
import org.jetbrains.dataframe.impl.codeGen.process
77
import org.jetbrains.kotlinx.dataframe.ColumnsContainer
@@ -186,8 +186,8 @@ class ReplCodeGenTests : BaseTest() {
186186
repl.process<Test3.A>()
187187
repl.process<Test3.B>()
188188
repl.process<Test3.C>()
189-
val c = repl.process(Test3.df, Test3::df) // TODO this now generates stuff
190-
c.declarations.shouldBeEmpty()
189+
val c = repl.process(Test3.df, Test3::df)
190+
c.declarations.shouldNotBeEmpty()
191191
}
192192

193193
@Test

0 commit comments

Comments
 (0)