From 01f8167159ad3cb318a770cebca2955e54384562 Mon Sep 17 00:00:00 2001 From: Oleg Smirnov Date: Mon, 2 Sep 2024 12:11:13 +0400 Subject: [PATCH] Add test for missing key and contains function --- .../json/schema/internal/wrapper/JsonWrapperTest.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/json-schema-validator/src/commonTest/kotlin/io/github/optimumcode/json/schema/internal/wrapper/JsonWrapperTest.kt b/json-schema-validator/src/commonTest/kotlin/io/github/optimumcode/json/schema/internal/wrapper/JsonWrapperTest.kt index 7698f16..c05c6d1 100644 --- a/json-schema-validator/src/commonTest/kotlin/io/github/optimumcode/json/schema/internal/wrapper/JsonWrapperTest.kt +++ b/json-schema-validator/src/commonTest/kotlin/io/github/optimumcode/json/schema/internal/wrapper/JsonWrapperTest.kt @@ -39,6 +39,9 @@ class JsonWrapperTest : FunSpec() { it.keys shouldContainExactly setOf("a", "b") it["a"].shouldBeInstanceOf() it["b"].shouldBeInstanceOf() + it["c"].shouldBeNull() + ("a" in it).shouldBeTrue() + ("c" in it).shouldBeFalse() } } }