mirror of
https://github.com/neovim/neovim.git
synced 2026-04-05 07:09:23 +00:00
test: correct order of arguments to eq() and neq()
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user