diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-01-11 21:50:08 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-01-11 21:50:08 +0100 |
commit | ee142add229cbcd58bc76d59f23e02517df14379 (patch) | |
tree | 5b6252210596b5a331e00ab4a89ea5017fc07a37 /src/json_test.c | |
parent | e32abbe42c921c5e521420417abe5bc301e540b3 (diff) | |
download | vim-git-ee142add229cbcd58bc76d59f23e02517df14379.tar.gz |
patch 8.0.0171: JS style JSON does not support single quotesv8.0.0171
Problem: JS style JSON does not support single quotes.
Solution: Allow for single quotes. (Yasuhiro Matsumoto, closes #1371)
Diffstat (limited to 'src/json_test.c')
-rw-r--r-- | src/json_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json_test.c b/src/json_test.c index 1a1fdcbad..74463f3d2 100644 --- a/src/json_test.c +++ b/src/json_test.c @@ -181,7 +181,7 @@ test_fill_called_on_string(void) reader.js_buf = (char_u *)" \"foo"; reader.js_end = reader.js_buf + STRLEN(reader.js_buf); reader.js_cookie = " \"foobar\" "; - assert(json_decode_string(&reader, NULL) == OK); + assert(json_decode_string(&reader, NULL, '"') == OK); } #endif |