diff options
author | Mathias <mathias@spray.io> | 2012-11-28 15:46:12 +0100 |
---|---|---|
committer | Mathias <mathias@spray.io> | 2012-11-28 15:57:35 +0100 |
commit | f78b91acb85a3411582c1f9f5c2dfe4b954a9b9c (patch) | |
tree | c0c6b4c723af8eb7699ca43a92246bc63fe14261 | |
parent | 6abcb652f7f2aadaa724e701a45c37cecb417b40 (diff) | |
download | spray-json-f78b91acb85a3411582c1f9f5c2dfe4b954a9b9c.tar.gz spray-json-f78b91acb85a3411582c1f9f5c2dfe4b954a9b9c.tar.bz2 spray-json-f78b91acb85a3411582c1f9f5c2dfe4b954a9b9c.zip |
Small improvement in test
-rw-r--r-- | src/test/scala/spray/json/JsonParserSpec.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/scala/spray/json/JsonParserSpec.scala b/src/test/scala/spray/json/JsonParserSpec.scala index af68216..a813c68 100644 --- a/src/test/scala/spray/json/JsonParserSpec.scala +++ b/src/test/scala/spray/json/JsonParserSpec.scala @@ -46,8 +46,9 @@ class JsonParserSpec extends Specification { "parse \"xyz\" to JsString" in { JsonParser("\"xyz\"") mustEqual JsString("xyz") } - "parse escapes in a JsString" in { - JsonParser(""""\"\\/\b\f\n\r\t\u12Ab"""") mustEqual JsString("\"\\/\b\f\n\r\t\u12ab") + "parse escapes in a JsString" in { + JsonParser(""""\"\\/\b\f\n\r\t"""") mustEqual JsString("\"\\/\b\f\n\r\t") + JsonParser("\"L\\" + "u00e4nder\"") mustEqual JsString("Länder") } "properly parse a simple JsObject" in ( JsonParser(""" { "key" :42, "key2": "value" }""") mustEqual |