diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-01-31 19:58:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-31 19:58:33 +0100 |
commit | 8376486e8ff1722a0760443fc4a402bdea632dda (patch) | |
tree | 141fe889c2f2130d1084513a44399e482efba161 /test/unit/eval/typval_spec.lua | |
parent | 8b11cf5092e0dfe45ee0f9cf0b72ce4ddeb8740c (diff) | |
parent | 13aa23b62af4df3e7f10687b76fe8c04efa2a598 (diff) | |
download | rneovim-8376486e8ff1722a0760443fc4a402bdea632dda.tar.gz rneovim-8376486e8ff1722a0760443fc4a402bdea632dda.tar.bz2 rneovim-8376486e8ff1722a0760443fc4a402bdea632dda.zip |
Merge pull request #17537 from bfredl/neolua
refactor(tests): run unittests using main nvim binary - delete separate nvim-test build
Diffstat (limited to 'test/unit/eval/typval_spec.lua')
-rw-r--r-- | test/unit/eval/typval_spec.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/unit/eval/typval_spec.lua b/test/unit/eval/typval_spec.lua index 128625374e..825377813d 100644 --- a/test/unit/eval/typval_spec.lua +++ b/test/unit/eval/typval_spec.lua @@ -1677,7 +1677,7 @@ describe('typval.c', function() eq(nil, lib.tv_dict_find(nil, 'test', -1)) eq(nil, lib.tv_dict_find(nil, nil, 0)) end) - itp('works with NULL key', function() + itp('works with empty key', function() local lua_d = { ['']=0, t=1, @@ -1692,7 +1692,6 @@ describe('typval.c', function() alloc_log:check({}) local dis = dict_items(d) eq({0, '', dis['']}, {tv_dict_find(d, '', 0)}) - eq({0, '', dis['']}, {tv_dict_find(d, nil, 0)}) end) itp('works with len properly', function() local lua_d = { @@ -1911,8 +1910,6 @@ describe('typval.c', function() local d = dict(lua_d) eq(lua_d, dct2tbl(d)) eq({{type='fref', fref='tr'}, true}, - {tv_dict_get_callback(d, nil, 0)}) - eq({{type='fref', fref='tr'}, true}, {tv_dict_get_callback(d, '', -1)}) eq({{type='none'}, true}, {tv_dict_get_callback(d, 'x', -1)}) |