summaryrefslogtreecommitdiff
path: root/src/testdir/test_json.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-01-10 15:15:37 +0100
committerBram Moolenaar <Bram@vim.org>2017-01-10 15:15:37 +0100
commit03c60c1573cdbebbb662863cfc1780d19d511db5 (patch)
tree15d54d07bbb9de9a678b8f5beabc9ed042c5d680 /src/testdir/test_json.vim
parentf446b48ff0bffae2b453cd4f9e3c25dfe363d29d (diff)
downloadvim-git-03c60c1573cdbebbb662863cfc1780d19d511db5.tar.gz
patch 8.0.0166: JSON with a duplicate key gives an internal errorv8.0.0166
Problem: JSON with a duplicate key gives an internal error. (Lcd) Solution: Give a normal error. Avoid an error when parsing JSON from a remote client fails.
Diffstat (limited to 'src/testdir/test_json.vim')
-rw-r--r--src/testdir/test_json.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testdir/test_json.vim b/src/testdir/test_json.vim
index e14903646..ecca0388e 100644
--- a/src/testdir/test_json.vim
+++ b/src/testdir/test_json.vim
@@ -148,8 +148,9 @@ func Test_json_decode()
call assert_fails('call json_decode("\"")', "E474:")
call assert_fails('call json_decode("blah")', "E474:")
- call assert_fails('call json_decode("true blah")', "E474:")
+ call assert_fails('call json_decode("true blah")', "E488:")
call assert_fails('call json_decode("<foobar>")', "E474:")
+ call assert_fails('call json_decode("{\"a\":1,\"a\":2}")', "E937:")
call assert_fails('call json_decode("{")', "E474:")
call assert_fails('call json_decode("{foobar}")', "E474:")