diff --git a/circe/src/test/scala/com/kevel/apso/circe/ImplicitsSpec.scala b/circe/src/test/scala/com/kevel/apso/circe/ImplicitsSpec.scala index 254efea7..a49a9956 100644 --- a/circe/src/test/scala/com/kevel/apso/circe/ImplicitsSpec.scala +++ b/circe/src/test/scala/com/kevel/apso/circe/ImplicitsSpec.scala @@ -26,6 +26,11 @@ class ImplicitsSpec extends Specification { res mustEqual expectedJson } + + "not throw a StackOverflowError for large lists of paths" in { + val paths = (1 to 10000).map(i => (s"a.v$i", i.asJson)).toList + fromFullPaths(paths, ".") must not(throwAn[StackOverflowError]) + } } "provide a method to get the key set of a JSON Object" in {