diff options
author | kenji yoshida <6b656e6a69@gmail.com> | 2018-08-07 19:07:58 +0900 |
---|---|---|
committer | Johannes Rudolph <johannes.rudolph@gmail.com> | 2018-08-07 12:07:58 +0200 |
commit | 0131537d5635f0af53314d87eb6ed1fb42ae0c4b (patch) | |
tree | f0a36b3369f7ddb189374fdf112675d0022b6488 /src/test/scala/spray/json/ProductFormatsSpec.scala | |
parent | 3e4d7da9b35abde4e110d0c61ea251da2697667c (diff) | |
download | spray-json-0131537d5635f0af53314d87eb6ed1fb42ae0c4b.tar.gz spray-json-0131537d5635f0af53314d87eb6ed1fb42ae0c4b.tar.bz2 spray-json-0131537d5635f0af53314d87eb6ed1fb42ae0c4b.zip |
Add support for Scala 2.13.0-M4 (#263)v1.3.4-2.13.0-M4
Diffstat (limited to 'src/test/scala/spray/json/ProductFormatsSpec.scala')
-rw-r--r-- | src/test/scala/spray/json/ProductFormatsSpec.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/scala/spray/json/ProductFormatsSpec.scala b/src/test/scala/spray/json/ProductFormatsSpec.scala index 30582a8..9eabc50 100644 --- a/src/test/scala/spray/json/ProductFormatsSpec.scala +++ b/src/test/scala/spray/json/ProductFormatsSpec.scala @@ -198,12 +198,12 @@ class ProductFormatsSpec extends Specification { "A JsonFormat created with `jsonFormat`, for a case class with mangled-name members," should { import TestProtocol1._ - val json = """{"ü$bavf$u56ú$":true,"=><+-*/!@#%^&~?|":1.0,"foo-bar!":42,"-x-":26,"User ID":"Karl"}""" + val json = """{"ü$bavf$u56ú$":true,"=><+-*/!@#%^&~?|":1.0,"foo-bar!":42,"-x-":26,"User ID":"Karl"}""".parseJson "produce the correct JSON" in { - TestMangled(42, "Karl", true, 26, 1.0f).toJson.compactPrint === json + TestMangled(42, "Karl", true, 26, 1.0f).toJson === json } "convert a JsObject to the respective case class instance" in { - json.parseJson.convertTo[TestMangled] === TestMangled(42, "Karl", true, 26, 1.0f) + json.convertTo[TestMangled] === TestMangled(42, "Karl", true, 26, 1.0f) } } } |