refactor: format test/*

This commit is contained in:
Justin M. Keyes
2024-01-03 02:09:18 +01:00
parent 59d117ec99
commit 04f2f864e2
363 changed files with 30631 additions and 20833 deletions

View File

@@ -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)