mirror of
https://github.com/neovim/neovim.git
synced 2025-12-05 14:13:10 +00:00
test: execute_spec: Adjust screen assertion.
The previous form was passing because it happens immediately before this form; but on a very fast(?) server the screen check might miss that form. It's also not really want we want to assert anyways.
This commit is contained in:
@@ -70,16 +70,16 @@ describe('execute()', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it('silences command run inside', function()
|
it('silences command run inside', function()
|
||||||
local screen = Screen.new(20, 5)
|
local screen = Screen.new(40, 5)
|
||||||
screen:attach()
|
screen:attach()
|
||||||
screen:set_default_attr_ids( {[0] = {bold=true, foreground=255}} )
|
screen:set_default_attr_ids( {[0] = {bold=true, foreground=255}} )
|
||||||
feed(':let g:mes = execute("echon 42")<CR>')
|
feed(':let g:mes = execute("echon 42")<CR>')
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
^ |
|
^ |
|
||||||
{0:~ }|
|
{0:~ }|
|
||||||
{0:~ }|
|
{0:~ }|
|
||||||
{0:~ }|
|
{0:~ }|
|
||||||
|
|
:let g:mes = execute("echon 42") |
|
||||||
]])
|
]])
|
||||||
eq('42', eval('g:mes'))
|
eq('42', eval('g:mes'))
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user