diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-01-16 06:38:50 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-01-16 18:03:08 +0800 |
commit | 61d5bd561addfd4cc9917712bdf983e77137089e (patch) | |
tree | 8947d5407fe261b26867d678cc6acb3ec97e3b9b /test/functional/ui | |
parent | ce66f158b55287924b33451b272de847ab75b332 (diff) | |
download | rneovim-61d5bd561addfd4cc9917712bdf983e77137089e.tar.gz rneovim-61d5bd561addfd4cc9917712bdf983e77137089e.tar.bz2 rneovim-61d5bd561addfd4cc9917712bdf983e77137089e.zip |
refactor: remove E5500, adjust tests
Now with try_end() including more exception info, E5500 looks like
redundant information.
Adjust tests for more exception information.
Diffstat (limited to 'test/functional/ui')
-rw-r--r-- | test/functional/ui/cmdline_highlight_spec.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/ui/cmdline_highlight_spec.lua b/test/functional/ui/cmdline_highlight_spec.lua index 33e375760e..eb5de693bd 100644 --- a/test/functional/ui/cmdline_highlight_spec.lua +++ b/test/functional/ui/cmdline_highlight_spec.lua @@ -335,17 +335,17 @@ describe('Command-line coloring', function() :echo "«^ | ]]) end) - it('does the right thing when errorring', function() + it('does the right thing when erroring', function() set_color_cb('Echoerring') start_prompt('e') screen:expect([[ | {EOB:~ }| - {EOB:~ }| {MSEP: }| : | {ERR:E5407: Callback has thrown an exception:}| - {ERR: Vim(echoerr):HERE} | + {ERR: function DoPrompt[3]..Echoerring, line }| + {ERR:1: Vim(echoerr):HERE} | :e^ | ]]) end) @@ -400,10 +400,10 @@ describe('Command-line coloring', function() screen:expect([[ | {EOB:~ }| - {EOB:~ }| {MSEP: }| : | {ERR:E5407: Callback has thrown an exception:}| + {ERR: function DoPrompt[3]..Throwing, line 1:}| {ERR: ABC} | :e^ | ]]) |