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

@@ -23,7 +23,9 @@ end
describe('Ex command', function()
before_each(clear)
after_each(function() eq({}, meths.get_vvar('errors')) end)
after_each(function()
eq({}, meths.get_vvar('errors'))
end)
it('checks for address line overflow', function()
if sizeoflong() < 8 then
@@ -47,10 +49,10 @@ describe(':confirm command dialog', function()
clear()
screen = Screen.new(75, 20)
screen:set_default_attr_ids({
[0] = {bold = true, foreground = Screen.colors.Blue}, -- NonText
[1] = {bold = true, reverse = true}, -- StatusLine, MsgSeparator
[2] = {reverse = true}, -- StatusLineNC
[3] = {bold = true, foreground = Screen.colors.SeaGreen}, -- MoreMsg
[0] = { bold = true, foreground = Screen.colors.Blue }, -- NonText
[1] = { bold = true, reverse = true }, -- StatusLine, MsgSeparator
[2] = { reverse = true }, -- StatusLineNC
[3] = { bold = true, foreground = Screen.colors.SeaGreen }, -- MoreMsg
})
screen:attach()
end
@@ -335,7 +337,7 @@ describe(':confirm command dialog', function()
]])
end
eq('foobar\n', read_file('Xconfirm_write_ro'))
feed('<CR>') -- suppress hit-enter prompt
feed('<CR>') -- suppress hit-enter prompt
-- Try to write with read-only file permissions.
funcs.setfperm('Xconfirm_write_ro', 'r--r--r--')
@@ -375,7 +377,7 @@ describe(':confirm command dialog', function()
]])
end
eq('foo\n', read_file('Xconfirm_write_ro'))
feed('<CR>') -- suppress hit-enter prompt
feed('<CR>') -- suppress hit-enter prompt
os.remove('Xconfirm_write_ro')
end)