From 68ce0bc4e5549b0011672b81b349932c6a25dabb Mon Sep 17 00:00:00 2001 From: acrusage-iaik <139230478+acrusage-iaik@users.noreply.github.com> Date: Tue, 21 Jan 2025 19:55:38 +0100 Subject: [PATCH] Refactor: minor --- .../openid/dcql/DCQLJsonClaimsQueryTest.kt | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/openid-data-classes/src/commonTest/kotlin/at/asitplus/openid/dcql/DCQLJsonClaimsQueryTest.kt b/openid-data-classes/src/commonTest/kotlin/at/asitplus/openid/dcql/DCQLJsonClaimsQueryTest.kt index 7652bbe7..7e2881f1 100644 --- a/openid-data-classes/src/commonTest/kotlin/at/asitplus/openid/dcql/DCQLJsonClaimsQueryTest.kt +++ b/openid-data-classes/src/commonTest/kotlin/at/asitplus/openid/dcql/DCQLJsonClaimsQueryTest.kt @@ -9,7 +9,7 @@ import io.kotest.matchers.shouldBe import io.kotest.matchers.types.shouldBeInstanceOf import io.matthewnelson.encoding.core.Encoder.Companion.encodeToString import kotlinx.serialization.json.Json -import kotlinx.serialization.json.JsonPrimitive +import kotlinx.serialization.json.add import kotlinx.serialization.json.buildJsonArray import kotlinx.serialization.json.buildJsonObject import kotlinx.serialization.json.encodeToJsonElement @@ -41,62 +41,62 @@ class DCQLJsonClaimsQueryTest : FreeSpec({ val credential = buildJsonArray { add(buildJsonObject { put("a", buildJsonArray { - add(JsonPrimitive("test")) - add(JsonPrimitive("other")) + add("test") + add("other") }) put("b", buildJsonArray { - add(JsonPrimitive("test")) - add(JsonPrimitive("other")) + add("test") + add("other") }) }) add(buildJsonObject { put("a", buildJsonArray { - add(JsonPrimitive(0)) - add(JsonPrimitive(1)) + add(0) + add(1) }) put("b", buildJsonArray { - add(JsonPrimitive(0)) - add(JsonPrimitive(1)) + add(0) + add(1) }) }) add(buildJsonObject { put("a", buildJsonArray { - add(JsonPrimitive(true)) - add(JsonPrimitive(false)) + add(true) + add(false) }) put("b", buildJsonArray { - add(JsonPrimitive(true)) - add(JsonPrimitive(false)) + add(true) + add(false) }) }) add(buildJsonObject { put("a", buildJsonArray { - add(JsonPrimitive(false)) - add(JsonPrimitive(true)) + add(false) + add(true) }) put("b", buildJsonArray { - add(JsonPrimitive(false)) - add(JsonPrimitive(true)) + add(false) + add(true) }) }) add(buildJsonObject { put("a", buildJsonArray { - add(JsonPrimitive(1)) - add(JsonPrimitive(0)) + add(1) + add(0) }) put("b", buildJsonArray { - add(JsonPrimitive(1)) - add(JsonPrimitive(0)) + add(1) + add(0) }) }) add(buildJsonObject { put("a", buildJsonArray { - add(JsonPrimitive("other")) - add(JsonPrimitive("test")) + add("other") + add("test") }) put("b", buildJsonArray { - add(JsonPrimitive("other")) - add(JsonPrimitive("test")) + add("other") + add("test") }) }) }