Skip to content

Commit 01f8167

Browse files
committed
Add test for missing key and contains function
1 parent 2a19d3e commit 01f8167

File tree

1 file changed

+3
-0
lines changed
  • json-schema-validator/src/commonTest/kotlin/io/github/optimumcode/json/schema/internal/wrapper

1 file changed

+3
-0
lines changed

json-schema-validator/src/commonTest/kotlin/io/github/optimumcode/json/schema/internal/wrapper/JsonWrapperTest.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ class JsonWrapperTest : FunSpec() {
3939
it.keys shouldContainExactly setOf("a", "b")
4040
it["a"].shouldBeInstanceOf<JsonPrimitiveWrapper>()
4141
it["b"].shouldBeInstanceOf<JsonArrayWrapper>()
42+
it["c"].shouldBeNull()
43+
("a" in it).shouldBeTrue()
44+
("c" in it).shouldBeFalse()
4245
}
4346
}
4447
}

0 commit comments

Comments
 (0)