diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-03-05 11:14:59 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-03-05 11:14:59 +0100 |
| commit | 62fff9853ec326a21a3891b4d5a212dd69ba86a4 (patch) | |
| tree | 4158f31adc6b4b9d900b84b0f00e5366769d1505 /lua | |
| parent | b97c6d29b6a1c66c2596033cd255d6803939aba0 (diff) | |
| download | vis-62fff9853ec326a21a3891b4d5a212dd69ba86a4.tar.gz vis-62fff9853ec326a21a3891b4d5a212dd69ba86a4.tar.xz | |
test/lua: fix luacheck warnings
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/cursor.lua | 4 | ||||
| -rw-r--r-- | lua/file-empty.lua | 2 | ||||
| -rw-r--r-- | lua/lines.lua | 6 | ||||
| -rw-r--r-- | lua/map-basic.lua | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/lua/cursor.lua b/lua/cursor.lua index 06d31a1..a42bd52 100644 --- a/lua/cursor.lua +++ b/lua/cursor.lua @@ -1,4 +1,4 @@ -local busted = require 'busted.runner'() +require 'busted.runner'() local win = vis.win @@ -30,7 +30,7 @@ describe("win.cursor", function() end) describe("win.cursor.pos", function() - + it("= 0", function() win.cursor.pos = 0 assert.are.equal(0, win.cursor.pos) diff --git a/lua/file-empty.lua b/lua/file-empty.lua index 95b34b0..170abc7 100644 --- a/lua/file-empty.lua +++ b/lua/file-empty.lua @@ -1,4 +1,4 @@ -local busted = require 'busted.runner'() +require 'busted.runner'() local file = vis.win.file diff --git a/lua/lines.lua b/lua/lines.lua index 7771530..ae2d2f8 100644 --- a/lua/lines.lua +++ b/lua/lines.lua @@ -1,4 +1,4 @@ -local busted = require 'busted.runner'() +require 'busted.runner'() local file = vis.win.file @@ -12,8 +12,8 @@ describe("file.lines_iterator()", function() i = i + 1 end local array_lines = {} - for i = 1, #file.lines do - array_lines[i] = file.lines[i] + for j = 1, #file.lines do + array_lines[j] = file.lines[j] end assert.are.same(array_lines, iterator_lines) end) diff --git a/lua/map-basic.lua b/lua/map-basic.lua index 56ad293..bb4a05f 100644 --- a/lua/map-basic.lua +++ b/lua/map-basic.lua @@ -1,4 +1,4 @@ -local busted = require 'busted.runner'() +require 'busted.runner'() vis:map(vis.modes.NORMAL, "K", function() vis:feedkeys("iNormal Mode<Escape>") |
