0.0.7: oendOfData support, correct decoding with default values past it
This commit is contained in:
1 parent
06f8bc7ef2
commit
47b450c597
5 files changed
+34
-5
No files matched your search
@@ -393,7 +393,16 @@ class BipackEncoderTest {
|
||||
assertEquals(xv, yv)
|
||||
println(xv)
|
||||
println(yv)
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testStrangeUnpack() {
|
||||
@Serializable
|
||||
data class SFoo(val code: Int,val s1: String?=null,val s2: String?=null)
|
||||
val z = BipackEncoder.encode(117)
|
||||
println(z.toDump())
|
||||
val sf = BipackDecoder.decode<SFoo>(z)
|
||||
println(sf)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user