Skip to content

Commit

Permalink
satisfy luacheck
Browse files Browse the repository at this point in the history
  • Loading branch information
kikito committed Feb 9, 2016
1 parent e292811 commit a22557d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ install:
- luarocks install luacov-coveralls

script:
- luacheck --no-unused-args --std max+busted *.lua spec
- luacheck --globals love --std max+busted *.lua spec
- busted --verbose --coverage

after_success:
Expand Down
4 changes: 2 additions & 2 deletions spec/anim8/animation_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ describe("anim8", function()
end)
it("counts the loops", function()
local count = 0;
local a = newAnimation({1,2,3}, 1, function(a, x) count = count + x end)
local a = newAnimation({1,2,3}, 1, function(_, x) count = count + x end)
a:update(4)
assert.equals(count, 1)
a:update(7)
assert.equals(count, 3)
end)
it("counts negative loops", function()
local count = 0;
local a = newAnimation({1,2,3}, 1, function(a, x) count = count + x end)
local a = newAnimation({1,2,3}, 1, function(_, x) count = count + x end)
a:update(-2)
assert.equals(count, -1)
a:update(-6)
Expand Down
2 changes: 1 addition & 1 deletion spec/anim8/grid_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe("anim8", function()

describe("Grid", function()
describe("getFrames", function()
local g, f
local g, nq
before_each(function()
g = newGrid(16,16,64,64)
nq = function(x,y) return newQuad(x,y, 16,16, 64,64) end
Expand Down

0 comments on commit a22557d

Please sign in to comment.