File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed
dataframe-json/src/test/kotlin/org/jetbrains/kotlinx/dataframe/io Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -151,17 +151,29 @@ class ToonTests {
151151 @Test
152152 fun `other TOON encoders fail not mine` () {
153153 // [
154- // 1,
155- // [1],
156- // {"a": 1},
157- // [{"b": 2}]
154+ // 1,
155+ // [1],
156+ // { "a": 1 },
157+ // [{ "b": 2 }],
158+ // { "c": [{ "d": 3 }, { "d": 4 }], "d": 7 }
158159 // ]
159160 ToonArray (
160161 listOf (
161162 ToonPrimitive (1 ),
162163 ToonArray (listOf (ToonPrimitive (1 ))),
163164 ToonObject (mapOf (" a" to ToonPrimitive (1 ))),
164165 ToonArray (listOf (ToonObject (mapOf (" b" to ToonPrimitive (2 ))))),
166+ ToonObject (
167+ mapOf (
168+ " c" to ToonArray (
169+ listOf (
170+ ToonObject (mapOf (" d" to ToonPrimitive (3 ), " e" to ToonPrimitive (5 ))),
171+ ToonObject (mapOf (" d" to ToonPrimitive (4 ), " e" to ToonPrimitive (6 ))),
172+ ),
173+ ),
174+ " d" to ToonPrimitive (7 ),
175+ ),
176+ ),
165177 ),
166178 ).let {
167179 println (it.render())
You can’t perform that action at this time.
0 commit comments