incorporates lua checks
This commit is contained in:
parent
0cd4751687
commit
bcbb3b1972
|
@ -74,9 +74,9 @@ describe("asynchronous keys", function()
|
|||
|
||||
it("map a function on a ticking element sequence", function()
|
||||
local s = stub.new()
|
||||
local tm1 = mb.send_mapped(20, s, 1, 2, 3)
|
||||
mb.send_mapped(20, s, 1, 2, 3)
|
||||
local t = stub.new()
|
||||
local tm2 = mb.send_mapped(100, t, 42)
|
||||
mb.send_mapped(100, t, 42)
|
||||
|
||||
-- "empty tick", as the tick mapper is yet delayed...
|
||||
tt.ticktock(10)
|
||||
|
@ -102,7 +102,7 @@ describe("asynchronous keys", function()
|
|||
|
||||
it("map two functions on ticking sequence", function()
|
||||
local s = stub.new()
|
||||
local tm = mb.send_mapped(0, {s, s}, 1, 2, 3)
|
||||
mb.send_mapped(0, {s, s}, 1, 2, 3)
|
||||
tt.ticktock(100)
|
||||
assert.stub(s).was.called(2*3)
|
||||
end)
|
||||
|
|
|
@ -21,7 +21,6 @@ SOFTWARE.
|
|||
]]--
|
||||
|
||||
require "mocked-keybow"
|
||||
local mb = require("snippets/multibow")
|
||||
local tq = require("snippets/mb/tickqueue")
|
||||
|
||||
local now = 0
|
||||
|
@ -46,6 +45,7 @@ function El:new(stub, times)
|
|||
}, El)
|
||||
end
|
||||
|
||||
-- luacheck: ignore 212/t
|
||||
function El:process(t)
|
||||
if self.stub then self.stub() end
|
||||
self.times = self.times - 1
|
||||
|
|
Loading…
Reference in New Issue