Skip to content

Commit 543afcd

Browse files
committed
tiny test expansion
1 parent ad2f419 commit 543afcd

File tree

1 file changed

+16
-4
lines changed
  • dataframe-json/src/test/kotlin/org/jetbrains/kotlinx/dataframe/io

1 file changed

+16
-4
lines changed

dataframe-json/src/test/kotlin/org/jetbrains/kotlinx/dataframe/io/ToonTests.kt

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff 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())

0 commit comments

Comments
 (0)