We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b154640 commit 397c5c2Copy full SHA for 397c5c2
formats/cbor/commonTest/src/kotlinx/serialization/cbor/CborDecoderTest.kt
@@ -54,9 +54,13 @@ class CborDecoderTest {
54
assertEquals(Cbor.encodeToCbor(test), struct)
55
assertEquals(test, Cbor.decodeFromCbor(TypesUmbrella.serializer(), struct))
56
57
+
58
+ assertEquals(hex, Cbor.encodeToHexString(TypesUmbrella.serializer(), test))
59
60
assertEquals(hex, Cbor.encodeToHexString(CborElement.serializer(), struct))
61
62
63
64
// with maps, lists & strings of definite length
65
val hexDef =
66
"a9646c6973748261616162686e756c6c61626c65f6636d6170a202f401f56169182a6a696e6e6572734c69737481a16161636b656b637374726d48656c6c6f2c20776f726c642165696e6e6572a16161636c6f6c6a62797465537472696e6742cafe6962797465417272617982383521"
0 commit comments