Skip to content

Commit 4bbfa14

Browse files
committed
Add testcase for json pointer with length longer than max length for recursion
1 parent e843137 commit 4bbfa14

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/commonTest/kotlin/io/github/optimumcode/json/pointer/JsonPointerExtensionsTest.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ class JsonPointerExtensionsTest : FunSpec() {
9797
JsonPointer("/test2"),
9898
JsonPointer("/test1//test2"),
9999
),
100+
TestCase(
101+
JsonPointer("/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/v"),
102+
JsonPointer("/w/x/y/z"),
103+
JsonPointer("/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/v/w/x/y/z"),
104+
),
100105
).forEach { (init, append, result) ->
101106
test("$init + $append => $result") {
102107
(init + append) shouldBe result

0 commit comments

Comments
 (0)