diff options
author | Dan Brown <jdanbrown@gmail.com> | 2012-11-19 13:49:10 -0800 |
---|---|---|
committer | Dan Brown <jdanbrown@gmail.com> | 2012-11-19 13:49:10 -0800 |
commit | b9c5163f5c33574e88a608f6d393ceb9128b8f1c (patch) | |
tree | 7436a44f930bfa5a9864e3fb0615d97b52cf21e2 /src/test/scala/spray | |
parent | f72b585bba6e090199f142668f34af50a57e60ed (diff) | |
download | spray-json-b9c5163f5c33574e88a608f6d393ceb9128b8f1c.tar.gz spray-json-b9c5163f5c33574e88a608f6d393ceb9128b8f1c.tar.bz2 spray-json-b9c5163f5c33574e88a608f6d393ceb9128b8f1c.zip |
Add broken test: \u0001 -> \u001
Diffstat (limited to 'src/test/scala/spray')
-rw-r--r-- | src/test/scala/spray/json/CompactPrinterSpec.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/scala/spray/json/CompactPrinterSpec.scala b/src/test/scala/spray/json/CompactPrinterSpec.scala index c00512d..add9fa6 100644 --- a/src/test/scala/spray/json/CompactPrinterSpec.scala +++ b/src/test/scala/spray/json/CompactPrinterSpec.scala @@ -50,6 +50,10 @@ class CompactPrinterSpec extends Specification { } "properly escape special chars in JsString" in { CompactPrinter(JsString("\"\\\b\f\n\r\t\u12AB")) mustEqual """"\"\\\b\f\n\r\t""" + "\\u12ab\"" + CompactPrinter(JsString("\u1000")) mustEqual "\"\\u1000\"" + CompactPrinter(JsString("\u0100")) mustEqual "\"\\u0100\"" + CompactPrinter(JsString("\u0010")) mustEqual "\"\\u0010\"" + CompactPrinter(JsString("\u0001")) mustEqual "\"\\u0001\"" // FIXME } "properly print a simple JsObject" in ( CompactPrinter(JsObject("key" -> JsNumber(42), "key2" -> JsString("value"))) |