Fixed array representation in DynamicMeta

This commit is contained in:
Alexander Nozik 2019-10-29 18:45:24 +03:00
parent 04e9601def
commit 264ed14cf4

View File

@ -1,5 +1,6 @@
package hep.dataforge.meta package hep.dataforge.meta
import hep.dataforge.values.int
import kotlin.test.Test import kotlin.test.Test
import kotlin.test.assertEquals import kotlin.test.assertEquals
import kotlin.test.assertTrue import kotlin.test.assertTrue
@ -19,7 +20,7 @@ class DynamicMetaTest {
val meta = DynamicMeta(d) val meta = DynamicMeta(d)
assertEquals(true, meta["ob.booleanNode"].boolean) assertEquals(true, meta["ob.booleanNode"].boolean)
assertEquals(2, meta["array[1]"].int) assertEquals(2, meta["array"].value?.list?.get(1)?.int)
assertEquals(4, meta.items.size) assertEquals(4, meta.items.size)
} }