mirror of
https://github.com/neovim/neovim.git
synced 2026-05-04 13:05:05 +00:00
test: avoid repeated screen lines in expected states
This is the command invoked repeatedly to make the changes:
:%s/^\(.*\)|\%(\*\(\d\+\)\)\?$\n\1|\%(\*\(\d\+\)\)\?$/\=submatch(1)..'|*'..(max([str2nr(submatch(2)),1])+max([str2nr(submatch(3)),1]))/g
This commit is contained in:
@@ -20,14 +20,7 @@ describe(':debug', function()
|
||||
feed(':echoerr bork<cr>')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|*8
|
||||
{2: }|
|
||||
{3:E121: Undefined variable: bork}|
|
||||
|
|
||||
@@ -38,11 +31,7 @@ describe(':debug', function()
|
||||
feed(':debug echo "aa"| echo "bb"<cr>')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|*5
|
||||
{2: }|
|
||||
{3:E121: Undefined variable: bork}|
|
||||
|
|
||||
@@ -56,8 +45,7 @@ describe(':debug', function()
|
||||
feed('step<cr>')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|*2
|
||||
{2: }|
|
||||
{3:E121: Undefined variable: bork}|
|
||||
|
|
||||
@@ -92,18 +80,7 @@ describe(':debug', function()
|
||||
feed('<cr>')
|
||||
screen:expect([[
|
||||
^ |
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|*12
|
||||
|
|
||||
]])
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user