Fix native test

This commit is contained in:
Alexander Nozik 2021-11-30 12:53:52 +03:00
parent 64e0c554cc
commit c480cd8e4d
No known key found for this signature in database
GPG Key ID: F7FCF2DD25C71357
2 changed files with 15 additions and 10 deletions

View File

@ -2,7 +2,6 @@ package space.kscience.dataforge.meta
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFails
class MutableMetaTest{
@Test
@ -20,13 +19,4 @@ class MutableMetaTest{
meta.remove("aNode.c")
assertEquals(meta["aNode.c"], null)
}
@Test
fun recursiveMeta(){
val meta = MutableMeta {
"a" put 2
}
assertFails { meta["child.a"] = meta}
}
}

View File

@ -0,0 +1,15 @@
package space.kscience.dataforge.meta
import org.junit.jupiter.api.Test
import kotlin.test.assertFails
class JvmMutableMetaTest {
@Test
fun recursiveMeta(){
val meta = MutableMeta {
"a" put 2
}
assertFails { meta["child.a"] = meta }
}
}