aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/json_functions_spec.lua
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2016-04-18 01:37:21 +0300
committerZyX <kp-pav@yandex.ru>2016-04-18 02:48:20 +0300
commita64114eba017c0db3d1849186c9c54fb09308761 (patch)
tree8a0833743202d0e6be899fe65b50a47197c0e40a /test/functional/eval/json_functions_spec.lua
parent28275fe5c3eedd7d5c5954178a28884a7a7b9483 (diff)
downloadrneovim-a64114eba017c0db3d1849186c9c54fb09308761.tar.gz
rneovim-a64114eba017c0db3d1849186c9c54fb09308761.tar.bz2
rneovim-a64114eba017c0db3d1849186c9c54fb09308761.zip
functests: Make json_functions_spec use new NIL where appropriate
Diffstat (limited to 'test/functional/eval/json_functions_spec.lua')
-rw-r--r--test/functional/eval/json_functions_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/eval/json_functions_spec.lua b/test/functional/eval/json_functions_spec.lua
index 0a7c4cf669..1cece78ce1 100644
--- a/test/functional/eval/json_functions_spec.lua
+++ b/test/functional/eval/json_functions_spec.lua
@@ -79,7 +79,7 @@ describe('json_decode() function', function()
end)
it('parses null, true, false', function()
- eq(nil, funcs.json_decode('null'))
+ eq(NIL, funcs.json_decode('null'))
eq(true, funcs.json_decode('true'))
eq(false, funcs.json_decode('false'))
end)
@@ -309,7 +309,7 @@ describe('json_decode() function', function()
it('parses containers', function()
eq({1}, funcs.json_decode('[1]'))
- eq({nil, 1}, funcs.json_decode('[null, 1]'))
+ eq({NIL, 1}, funcs.json_decode('[null, 1]'))
eq({['1']=2}, funcs.json_decode('{"1": 2}'))
eq({['1']=2, ['3']={{['4']={['5']={{}, 1}}}}},
funcs.json_decode('{"1": 2, "3": [{"4": {"5": [[], 1]}}]}'))