mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
functests: Fix ui/cmdline test
This commit is contained in:
parent
764cf3251d
commit
53fa435a1f
@ -226,7 +226,11 @@ describe('external cmdline', function()
|
|||||||
prompt = "",
|
prompt = "",
|
||||||
special = {'"', true},
|
special = {'"', true},
|
||||||
},{
|
},{
|
||||||
content = { { {}, "1+2" } },
|
content = {
|
||||||
|
{ {}, "1" },
|
||||||
|
{ {}, "+" },
|
||||||
|
{ {}, "2" },
|
||||||
|
},
|
||||||
firstc = "=",
|
firstc = "=",
|
||||||
indent = 0,
|
indent = 0,
|
||||||
pos = 3,
|
pos = 3,
|
||||||
@ -303,7 +307,7 @@ describe('external cmdline', function()
|
|||||||
pos = 0,
|
pos = 0,
|
||||||
prompt = "",
|
prompt = "",
|
||||||
}}, cmdline)
|
}}, cmdline)
|
||||||
eq({{{{}, 'function Foo()'}}}, block)
|
eq({ { { {}, 'function Foo()'} } }, block)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
feed('line1<cr>')
|
feed('line1<cr>')
|
||||||
@ -314,8 +318,8 @@ describe('external cmdline', function()
|
|||||||
~ |
|
~ |
|
||||||
|
|
|
|
||||||
]], nil, nil, function()
|
]], nil, nil, function()
|
||||||
eq({{{{}, 'function Foo()'}},
|
eq({ { { {}, 'function Foo()'} },
|
||||||
{{{}, ' line1'}}}, block)
|
{ { {}, ' line1'} } }, block)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
block = {}
|
block = {}
|
||||||
@ -327,8 +331,8 @@ describe('external cmdline', function()
|
|||||||
~ |
|
~ |
|
||||||
^ |
|
^ |
|
||||||
]], nil, nil, function()
|
]], nil, nil, function()
|
||||||
eq({{{{}, 'function Foo()'}},
|
eq({ { { {}, 'function Foo()'} },
|
||||||
{{{}, ' line1'}}}, block)
|
{ { {}, ' line1'} } }, block)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user