sets serialization
This commit is contained in:
1 parent
790cce0d24
commit
f805e1ee82
3 files changed
+24
-4
No files matched your search
@@ -549,13 +549,22 @@ class LynonTests {
|
||||
fun testHeterogeneousMap() = runTest {
|
||||
val s = testScope()
|
||||
s.eval("""
|
||||
// testEncode(["one", 2])
|
||||
// testEncode([1, "2"])
|
||||
// testEncode( Map("one" => 1, 2 => 2) )
|
||||
testEncode(["one", 2])
|
||||
testEncode([1, "2"])
|
||||
testEncode( Map("one" => 1, 2 => 2) )
|
||||
testEncode( Map("one" => 1, 2 => "2") )
|
||||
""".trimIndent())
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testSetSerialization() = runTest {
|
||||
testScope().eval("""
|
||||
testEncode( Set("one", "two") )
|
||||
testEncode( Set() )
|
||||
testEncode( Set(1, "one", false) )
|
||||
testEncode( Set(true, true, false) )
|
||||
""".trimIndent())
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user