summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorLolo Iccl <oxisccl@gmail.com>2017-01-11 14:50:18 +0900
committerAndreas Rumpf <rumpf_a@web.de>2017-01-11 06:50:18 +0100
commitabe5cb82a0152cceaeaa2c763ad9ef8c793ea597 (patch)
tree10a2ff975045d458a8fc6f9b5cea9305f14b0e2e /tests
parentda1293c405c3323430cf7dc0f1abcd025b6fe70c (diff)
downloadNim-abe5cb82a0152cceaeaa2c763ad9ef8c793ea597.tar.gz
Fix for #5134 (parseJson(string) should fail on leftover data) (#5203)
Diffstat (limited to 'tests')
-rw-r--r--tests/testdata/jsonwithextradata.json6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/testdata/jsonwithextradata.json b/tests/testdata/jsonwithextradata.json
new file mode 100644
index 000000000..f6b6e7c80
--- /dev/null
+++ b/tests/testdata/jsonwithextradata.json
@@ -0,0 +1,6 @@
+{
+    "foo": 123,
+    "bar": 456
+}
+
+"foobar"