Fixed array representation in DynamicMeta
This commit is contained in:
parent
04e9601def
commit
264ed14cf4
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user