diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-10-15 22:16:17 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-10-15 22:16:48 +0200 |
commit | 97caabc49a4fa73e9f12fd5c910c1ba67292ba62 (patch) | |
tree | 84503535cbf49568f33ef2c624dd9ccb6641bbba /test/functional/eval/execute_spec.lua | |
parent | 3a2903c83607e44677cab1dd8a4837e0022d41db (diff) | |
download | rneovim-97caabc49a4fa73e9f12fd5c910c1ba67292ba62.tar.gz rneovim-97caabc49a4fa73e9f12fd5c910c1ba67292ba62.tar.bz2 rneovim-97caabc49a4fa73e9f12fd5c910c1ba67292ba62.zip |
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.
Diffstat (limited to 'test/functional/eval/execute_spec.lua')
-rw-r--r-- | test/functional/eval/execute_spec.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/functional/eval/execute_spec.lua b/test/functional/eval/execute_spec.lua index 10a6de6eb4..b5b481435a 100644 --- a/test/functional/eval/execute_spec.lua +++ b/test/functional/eval/execute_spec.lua @@ -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) |