1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 15:19:12 +08:00

Add test for data#json api

This commit is contained in:
wsdjeg 2017-10-23 23:30:24 +08:00
parent 9fe68c4b40
commit 25d89bf344

4
test/api/data/json.vader Normal file
View File

@ -0,0 +1,4 @@
Execute ( SpaceVim api: data#json ):
let json = SpaceVim#api#import('data#json')
AssertEqual json.json_decode('{"foo":"zaa"}'), {'foo' : 'zaa'}
AssertEqual json.json_encode({'foo' : 'zaa'}), '{"foo": "zaa"}'