mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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:
parent
3a2903c836
commit
97caabc49a
@ -70,16 +70,16 @@ describe('execute()', function()
|
||||
end)
|
||||
|
||||
it('silences command run inside', function()
|
||||
local screen = Screen.new(20, 5)
|
||||
local screen = Screen.new(40, 5)
|
||||
screen:attach()
|
||||
screen:set_default_attr_ids( {[0] = {bold=true, foreground=255}} )
|
||||
feed(':let g:mes = execute("echon 42")<CR>')
|
||||
screen:expect([[
|
||||
^ |
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
|
|
||||
^ |
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
:let g:mes = execute("echon 42") |
|
||||
]])
|
||||
eq('42', eval('g:mes'))
|
||||
end)
|
||||
|
Loading…
Reference in New Issue
Block a user