aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-04-03 03:07:01 +0300
committerZyX <kp-pav@yandex.ru>2017-04-03 03:07:01 +0300
commitdc75766081e143401ae28bea66f970ab005402fc (patch)
treeabcc98dc3cfdcc188345f9b2169633d6328fc654
parent991204310399d4dcaf5f5ee7571eff178c93e793 (diff)
downloadrneovim-dc75766081e143401ae28bea66f970ab005402fc.tar.gz
rneovim-dc75766081e143401ae28bea66f970ab005402fc.tar.bz2
rneovim-dc75766081e143401ae28bea66f970ab005402fc.zip
tests: Fix testlint errors
-rw-r--r--test/functional/ui/cursor_spec.lua5
-rw-r--r--test/unit/os/fileio_spec.lua2
2 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/ui/cursor_spec.lua b/test/functional/ui/cursor_spec.lua
index 8b42c193ab..56f02e4e7f 100644
--- a/test/functional/ui/cursor_spec.lua
+++ b/test/functional/ui/cursor_spec.lua
@@ -1,8 +1,7 @@
local helpers = require('test.functional.helpers')(after_each)
local Screen = require('test.functional.ui.screen')
-local clear, feed, meths = helpers.clear, helpers.feed, helpers.meths
-local insert, execute = helpers.insert, helpers.execute
-local eq, funcs = helpers.eq, helpers.funcs
+local clear, meths = helpers.clear, helpers.meths
+local eq = helpers.eq
local command = helpers.command
describe('ui/cursor', function()
diff --git a/test/unit/os/fileio_spec.lua b/test/unit/os/fileio_spec.lua
index 6c1ae73847..e3c8e616ce 100644
--- a/test/unit/os/fileio_spec.lua
+++ b/test/unit/os/fileio_spec.lua
@@ -234,6 +234,7 @@ end)
describe('file_close', function()
itp('can flush writes to disk also with true argument', function()
local err, fp = file_open(filec, m.kFileCreateOnly, 384)
+ eq(0, err)
local wsize = file_write(fp, 'test')
eq(4, wsize)
eq(0, lfs.attributes(filec).size)
@@ -245,6 +246,7 @@ end)
describe('file_free', function()
itp('can flush writes to disk also with true argument', function()
local err, fp = file_open_new(filec, m.kFileCreateOnly, 384)
+ eq(0, err)
local wsize = file_write(fp, 'test')
eq(4, wsize)
eq(0, lfs.attributes(filec).size)