aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/json_functions_spec.lua
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2016-03-20 20:03:12 +0300
committerZyX <kp-pav@yandex.ru>2016-04-18 02:48:20 +0300
commit9af400f97916851ecd86975118faea2a8c68598f (patch)
treef3615d14e90dc30decade68014c95cf74ca260ea /test/functional/eval/json_functions_spec.lua
parentaf7ff808c73110f04aadaaab72eac6307dae0cc2 (diff)
downloadrneovim-9af400f97916851ecd86975118faea2a8c68598f.tar.gz
rneovim-9af400f97916851ecd86975118faea2a8c68598f.tar.bz2
rneovim-9af400f97916851ecd86975118faea2a8c68598f.zip
eval: Treat [] and [""] as any other empty string
Diffstat (limited to 'test/functional/eval/json_functions_spec.lua')
-rw-r--r--test/functional/eval/json_functions_spec.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/eval/json_functions_spec.lua b/test/functional/eval/json_functions_spec.lua
index 091b6f5457..0b1862fa8b 100644
--- a/test/functional/eval/json_functions_spec.lua
+++ b/test/functional/eval/json_functions_spec.lua
@@ -508,6 +508,10 @@ describe('json_decode() function', function()
eq('Vim(call):E474: Attempt to decode a blank string',
exc_exec('call json_decode("")'))
eq('Vim(call):E474: Attempt to decode a blank string',
+ exc_exec('call json_decode([])'))
+ eq('Vim(call):E474: Attempt to decode a blank string',
+ exc_exec('call json_decode([""])'))
+ eq('Vim(call):E474: Attempt to decode a blank string',
exc_exec('call json_decode(" ")'))
eq('Vim(call):E474: Attempt to decode a blank string',
exc_exec('call json_decode("\\t")'))