fix #85 lynon empty list encoding

This commit is contained in:
sergeych committed 2025-12-07 21:50:47 +01:00
1 parent bfffea7e69
commit 678cfbf45e
3 files changed
+25 -3

No files matched your search

+13
View File
@@ -778,6 +778,19 @@ class Wallet( id, ownerKey, balance=0, createdAt=Instant.now().truncateToSecond(
assert( Lynon.encode(Poin3(1,2)).size <= 110)
""".trimIndent())
}
@Test
fun testLyngDecodeResult() = runTest {
val a = eval("""
[Map(),Map(),Map()]
""".trimIndent())
val b = lynonDecodeAny(Scope(), lynonEncodeAny(Scope(), a))
assertEquals(a, b )
// val c = b.decodeSerializable<JsonElement>()
// println(c)
}
}