diff options
author | ZyX <kp-pav@yandex.ru> | 2017-03-26 03:42:23 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-29 10:08:46 +0300 |
commit | 58e34e8d99b01bf3937824fc50502e39a8c39eba (patch) | |
tree | 9f7e2da65dd6627ecb2f4ee0f8b7c3a6d37ba0b1 /test/unit/eval/typval_spec.lua | |
parent | f4256243dbdbd2858be716f9f52763bd9a76be4d (diff) | |
download | rneovim-58e34e8d99b01bf3937824fc50502e39a8c39eba.tar.gz rneovim-58e34e8d99b01bf3937824fc50502e39a8c39eba.tar.bz2 rneovim-58e34e8d99b01bf3937824fc50502e39a8c39eba.zip |
eval/typval: Allow NULL dict as tv_dict_get_callback() argument
Also removes NULL key input: tv_dict_find() does not allow this.
Diffstat (limited to 'test/unit/eval/typval_spec.lua')
-rw-r--r-- | test/unit/eval/typval_spec.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/unit/eval/typval_spec.lua b/test/unit/eval/typval_spec.lua index 7436115945..3a4ef0cb92 100644 --- a/test/unit/eval/typval_spec.lua +++ b/test/unit/eval/typval_spec.lua @@ -1736,8 +1736,7 @@ describe('typval.c', function() return cb_lua, ret end itp('works with NULL dict', function() - eq({{type='none'}, true}, - {tv_dict_get_callback(nil, nil, 0)}) + eq({{type='none'}, true}, {tv_dict_get_callback(nil, '')}) end) itp('works', function() local lua_d = { |