diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-26 12:20:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-26 12:20:19 +0800 |
commit | a75efc237d8669ef12fdfc9a7c5c5cf0f77083dc (patch) | |
tree | c22f82a0c739a99729d3d07a2af228b31dacaf4e /test/functional/ui/float_spec.lua | |
parent | 5d159a7faad913852c65c81dcc976cf4be902fc1 (diff) | |
parent | 519e4c44720be9b0c8584cb53a902bc1e5bfe3a3 (diff) | |
download | rneovim-a75efc237d8669ef12fdfc9a7c5c5cf0f77083dc.tar.gz rneovim-a75efc237d8669ef12fdfc9a7c5c5cf0f77083dc.tar.bz2 rneovim-a75efc237d8669ef12fdfc9a7c5c5cf0f77083dc.zip |
Merge pull request #18267 from zeertzjq/test-eq-arg-order
test: correct order of arguments to eq() and neq()
Diffstat (limited to 'test/functional/ui/float_spec.lua')
-rw-r--r-- | test/functional/ui/float_spec.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua index 359d1f206a..96e7b1b6bc 100644 --- a/test/functional/ui/float_spec.lua +++ b/test/functional/ui/float_spec.lua @@ -85,8 +85,8 @@ describe('float window', function() local buf = meths.create_buf(false, false) meths.buf_set_lines(buf, 0, -1, true, {'the floatwin'}) local win = meths.open_win(buf, true, {relative='win', width=16, height=1, row=0, col=10}) - eq(pcall_err(funcs.win_execute, win, 'close'), 'Vim(close):E37: No write since last change (add ! to override)') - eq(pcall_err(funcs.win_execute, win, 'bdelete'), 'Vim(bdelete):E89: No write since last change for buffer 2 (add ! to override)') + eq('Vim(close):E37: No write since last change (add ! to override)', pcall_err(funcs.win_execute, win, 'close')) + eq('Vim(bdelete):E89: No write since last change for buffer 2 (add ! to override)', pcall_err(funcs.win_execute, win, 'bdelete')) funcs.win_execute(win, 'bwipe!') end) @@ -367,7 +367,7 @@ describe('float window', function() return vim.api.nvim_open_win(bufnr, false, opts) ]]) command('windo echo') - neq(eval('win_getid()'), winid) + neq(winid, eval('win_getid()')) end) it('is active after windo when focusable', function() @@ -384,7 +384,7 @@ describe('float window', function() return vim.api.nvim_open_win(bufnr, false, opts) ]]) command('windo echo') - eq(eval('win_getid()'), winid) + eq(winid, eval('win_getid()')) end) it('supports windo with focusable and non-focusable floats', function() |