mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
refactor: format test/*
This commit is contained in:
@@ -9,7 +9,7 @@ before_each(clear)
|
||||
|
||||
describe('Vim script', function()
|
||||
-- oldtest: Test_deep_nest()
|
||||
it('Error when if/for/while/try/function is nested too deep',function()
|
||||
it('Error when if/for/while/try/function is nested too deep', function()
|
||||
local screen = Screen.new(80, 24)
|
||||
screen:attach()
|
||||
meths.set_option_value('laststatus', 2, {})
|
||||
@@ -59,25 +59,25 @@ describe('Vim script', function()
|
||||
let @a = ''
|
||||
endfunc
|
||||
]])
|
||||
screen:expect({any = '%[No Name%]'})
|
||||
screen:expect({ any = '%[No Name%]' })
|
||||
feed(':call Test1()<CR>')
|
||||
screen:expect({any = 'E579: '})
|
||||
screen:expect({ any = 'E579: ' })
|
||||
feed('<C-C>')
|
||||
screen:expect({any = '%[No Name%]'})
|
||||
screen:expect({ any = '%[No Name%]' })
|
||||
feed(':call Test2()<CR>')
|
||||
screen:expect({any = 'E585: '})
|
||||
screen:expect({ any = 'E585: ' })
|
||||
feed('<C-C>')
|
||||
screen:expect({any = '%[No Name%]'})
|
||||
screen:expect({ any = '%[No Name%]' })
|
||||
feed(':call Test3()<CR>')
|
||||
screen:expect({any = 'E585: '})
|
||||
screen:expect({ any = 'E585: ' })
|
||||
feed('<C-C>')
|
||||
screen:expect({any = '%[No Name%]'})
|
||||
screen:expect({ any = '%[No Name%]' })
|
||||
feed(':call Test4()<CR>')
|
||||
screen:expect({any = 'E601: '})
|
||||
screen:expect({ any = 'E601: ' })
|
||||
feed('<C-C>')
|
||||
screen:expect({any = '%[No Name%]'})
|
||||
screen:expect({ any = '%[No Name%]' })
|
||||
feed(':call Test5()<CR>')
|
||||
screen:expect({any = 'E1058: '})
|
||||
screen:expect({ any = 'E1058: ' })
|
||||
end)
|
||||
|
||||
-- oldtest: Test_typed_script_var()
|
||||
@@ -85,6 +85,6 @@ describe('Vim script', function()
|
||||
local screen = Screen.new(80, 24)
|
||||
screen:attach()
|
||||
feed(":echo get(s:, 'foo', 'x')\n")
|
||||
screen:expect({any = 'E116: '})
|
||||
screen:expect({ any = 'E116: ' })
|
||||
end)
|
||||
end)
|
||||
|
Reference in New Issue
Block a user