File tree Expand file tree Collapse file tree
eupidcredential/src/commonTest/kotlin/at/asitplus/wallet/eupid Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package at.asitplus.wallet.eupid
22
3+ import at.asitplus.signum.indispensable.cosef.io.coseCompliantSerializer
34import at.asitplus.wallet.lib.data.LocalDateOrInstant
45import at.asitplus.wallet.lib.data.vckJsonSerializer
5- import at.asitplus.wallet.lib.iso.vckCborSerializer
66import io.kotest.core.spec.style.FunSpec
77import io.kotest.matchers.shouldBe
8+ import io.kotest.provided.randomInstant
9+ import io.kotest.provided.randomLocalDate
10+ import io.kotest.provided.randomString
811import kotlinx.serialization.ExperimentalSerializationApi
912import kotlinx.serialization.decodeFromByteArray
1013import kotlinx.serialization.encodeToByteArray
@@ -61,8 +64,8 @@ class SdJwtSerializationTest : FunSpec({
6164 val json = vckJsonSerializer.encodeToString(credential)
6265 vckJsonSerializer.decodeFromString<EuPidCredentialSdJwt >(json) shouldBe credential
6366
64- val cbor = vckCborSerializer .encodeToByteArray(credential)
65- vckCborSerializer .decodeFromByteArray<EuPidCredentialSdJwt >(cbor) shouldBe credential
67+ val cbor = coseCompliantSerializer .encodeToByteArray(credential)
68+ coseCompliantSerializer .decodeFromByteArray<EuPidCredentialSdJwt >(cbor) shouldBe credential
6669 }
6770
6871})
Original file line number Diff line number Diff line change @@ -14,3 +14,6 @@ kotlin.native.ignoreDisabledTargets=true
1414
1515artifactVersion = 3.1.1-SNAPSHOT
1616jdk.version =17
17+
18+ # work around toolchain bug
19+ kotlin.native.cacheKind.iosSimulatorArm64 =none
You can’t perform that action at this time.
0 commit comments