A bit of linting

This commit is contained in:
KillTheMule 2016-07-28 20:35:06 +02:00 committed by Justin M. Keyes
parent 9b6988e62a
commit 7a56967f8c

View File

@ -1,10 +1,8 @@
-- Test for a lot of variations of the 'fileformats' option -- Test for a lot of variations of the 'fileformats' option
local helpers = require('test.functional.helpers') local helpers = require('test.functional.helpers')
local feed, insert, source, clear, execute, expect, eq, eval, write_file = local feed, clear, execute = helpers.feed, helpers.clear, helpers.execute
helpers.feed, helpers.insert, helpers.source, helpers.clear, local eq, write_file = helpers.eq, helpers.write_file
helpers.execute, helpers.expect, helpers.eq, helpers.eval,
helpers.write_file
describe('fileformats option', function() describe('fileformats option', function()
setup(function() setup(function()
@ -23,6 +21,7 @@ describe('fileformats option', function()
write_file('XXUxDsMc', unix..dos..mac) write_file('XXUxDsMc', unix..dos..mac)
write_file('XXUxMac', unix..mac) write_file('XXUxMac', unix..mac)
end) end)
teardown(function() teardown(function()
os.remove('test.out') os.remove('test.out')
os.remove('XXDos') os.remove('XXDos')
@ -36,7 +35,7 @@ describe('fileformats option', function()
os.remove('XXUxMac') os.remove('XXUxMac')
for i = 0, 9 do for i = 0, 9 do
for j = 1, 4 do for j = 1, 4 do
os.remove('XXtt'..i..j) os.remove('XXtt'..i..j)
end end
end end
end) end)
@ -156,7 +155,8 @@ describe('fileformats option', function()
execute('e! XXUxDsMc') execute('e! XXUxDsMc')
execute('w! XXtt93') execute('w! XXtt93')
-- Append "END" to each file so that we can see what the last written char was. -- Append "END" to each file so that we can see what the last written
-- char was.
execute('set fileformat=unix nobin') execute('set fileformat=unix nobin')
feed('ggdGaEND<esc>') feed('ggdGaEND<esc>')
execute('w >>XXtt01') execute('w >>XXtt01')