Skip to content

Commit 397c5c2

Browse files
committed
clarify faulty test vector
1 parent b154640 commit 397c5c2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

formats/cbor/commonTest/src/kotlinx/serialization/cbor/CborDecoderTest.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,13 @@ class CborDecoderTest {
5454
assertEquals(Cbor.encodeToCbor(test), struct)
5555
assertEquals(test, Cbor.decodeFromCbor(TypesUmbrella.serializer(), struct))
5656

57+
58+
assertEquals(hex, Cbor.encodeToHexString(TypesUmbrella.serializer(), test))
59+
5760
assertEquals(hex, Cbor.encodeToHexString(CborElement.serializer(), struct))
5861

5962

63+
6064
// with maps, lists & strings of definite length
6165
val hexDef =
6266
"a9646c6973748261616162686e756c6c61626c65f6636d6170a202f401f56169182a6a696e6e6572734c69737481a16161636b656b637374726d48656c6c6f2c20776f726c642165696e6e6572a16161636c6f6c6a62797465537472696e6742cafe6962797465417272617982383521"

0 commit comments

Comments
 (0)