incorporates lua checks

This commit is contained in:
Harald Albrecht 2019-02-17 19:35:27 +01:00
parent 0cd4751687
commit bcbb3b1972
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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