aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/json.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libtests/json.cc')
-rw-r--r--libtests/json.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libtests/json.cc b/libtests/json.cc
index e84ef0a0..4f4cff8e 100644
--- a/libtests/json.cc
+++ b/libtests/json.cc
@@ -134,6 +134,12 @@ test_main()
" \"normal\": \"string\"\n"
"}");
+ try {
+ JSON::parse("\"");
+ assert(false);
+ } catch (std::runtime_error&) {
+ }
+
// Check default constructed JSON object (order as per JSON.hh).
JSON uninitialized;
std::string ws;