diff options
Diffstat (limited to 'src/test/scala/spray/json/JsonParserSpec.scala')
-rw-r--r-- | src/test/scala/spray/json/JsonParserSpec.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/scala/spray/json/JsonParserSpec.scala b/src/test/scala/spray/json/JsonParserSpec.scala index 0f7ae7f..e6a6899 100644 --- a/src/test/scala/spray/json/JsonParserSpec.scala +++ b/src/test/scala/spray/json/JsonParserSpec.scala @@ -107,5 +107,11 @@ class JsonParserSpec extends Specification { | ^ |""".stripMargin } + + "parse multiple values when requireEndOfInput is false" in { + val parser = new JsonParser("""{"key":1}{"key":2}""") + parser.parseJsValue(false) === JsObject("key" -> JsNumber(1)) + parser.parseJsValue(false) === JsObject("key" -> JsNumber(2)) + } } }
\ No newline at end of file |