Created
January 30, 2018 07:39
-
-
Save Synesso/6be9deaea044e7d53c828ac22578df8f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // using json4s-native 3.6.0-M2 | |
| "bad json" should { | |
| "not be parsed" >> { | |
| val s = """{"foo":[{"bar":1},{"bar":2}{"bar":3}]}""" | |
| parse(s) must throwAn[Exception] | |
| } | |
| } | |
| /* | |
| [info] bad json should | |
| [error] x not be parsed | |
| [error] Expected: java.lang.Exception. Got nothing (JsonSpec.scala:10) | |
| */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment