diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-01-16 13:26:21 +0000 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-01-16 19:11:49 +0000 |
commit | 8f02ae82e203920b472d17e75a61763f3a409a7b (patch) | |
tree | 4e6379218c7d53d1ba512a2464ec0237365a7bbb /test/functional/editor | |
parent | 91dc04a5e12a3d0c5be56768ded5971bc80e6f8e (diff) | |
download | rneovim-8f02ae82e203920b472d17e75a61763f3a409a7b.tar.gz rneovim-8f02ae82e203920b472d17e75a61763f3a409a7b.tar.bz2 rneovim-8f02ae82e203920b472d17e75a61763f3a409a7b.zip |
test: use integers for API Buffer/Window/Tabpage EXT types
Diffstat (limited to 'test/functional/editor')
-rw-r--r-- | test/functional/editor/mark_spec.lua | 10 | ||||
-rw-r--r-- | test/functional/editor/tabpage_spec.lua | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/test/functional/editor/mark_spec.lua b/test/functional/editor/mark_spec.lua index de905a86ba..6b20a736c0 100644 --- a/test/functional/editor/mark_spec.lua +++ b/test/functional/editor/mark_spec.lua @@ -104,7 +104,7 @@ describe('named marks', function() feed('mA') command('next') feed("'A") - eq(1, api.nvim_get_current_buf().id) + eq(1, api.nvim_get_current_buf()) eq({ 2, 0 }, cursor()) end) @@ -117,7 +117,7 @@ describe('named marks', function() feed('mA') command('next') feed('`A') - eq(1, api.nvim_get_current_buf().id) + eq(1, api.nvim_get_current_buf()) eq({ 2, 2 }, cursor()) end) @@ -130,7 +130,7 @@ describe('named marks', function() feed('mA') command('next') feed("g'A") - eq(1, api.nvim_get_current_buf().id) + eq(1, api.nvim_get_current_buf()) eq({ 2, 0 }, cursor()) end) @@ -143,7 +143,7 @@ describe('named marks', function() feed('mA') command('next') feed('g`A') - eq(1, api.nvim_get_current_buf().id) + eq(1, api.nvim_get_current_buf()) eq({ 2, 2 }, cursor()) end) @@ -157,7 +157,7 @@ describe('named marks', function() feed('mA') command('next') command("'A") - eq(1, api.nvim_get_current_buf().id) + eq(1, api.nvim_get_current_buf()) eq({ 2, 0 }, cursor()) end) diff --git a/test/functional/editor/tabpage_spec.lua b/test/functional/editor/tabpage_spec.lua index f64e099344..0cbc2dbf3d 100644 --- a/test/functional/editor/tabpage_spec.lua +++ b/test/functional/editor/tabpage_spec.lua @@ -76,25 +76,25 @@ describe('tabpage', function() it('nvim_win_close and nvim_win_hide update tabline #20285', function() eq(1, #api.nvim_list_tabpages()) eq({ 1, 1 }, fn.win_screenpos(0)) - local win1 = curwin().id + local win1 = curwin() command('tabnew') eq(2, #api.nvim_list_tabpages()) eq({ 2, 1 }, fn.win_screenpos(0)) - local win2 = curwin().id + local win2 = curwin() api.nvim_win_close(win1, true) - eq(win2, curwin().id) + eq(win2, curwin()) eq(1, #api.nvim_list_tabpages()) eq({ 1, 1 }, fn.win_screenpos(0)) command('tabnew') eq(2, #api.nvim_list_tabpages()) eq({ 2, 1 }, fn.win_screenpos(0)) - local win3 = curwin().id + local win3 = curwin() api.nvim_win_hide(win2) - eq(win3, curwin().id) + eq(win3, curwin()) eq(1, #api.nvim_list_tabpages()) eq({ 1, 1 }, fn.win_screenpos(0)) end) |