Add multicall bug test, not working yet
This commit is contained in:
parent
20c8c7426f
commit
08ca559ade
1 changed files with 14 additions and 0 deletions
14
test_bc.lua
14
test_bc.lua
|
|
@ -205,3 +205,17 @@ function test_late_install()
|
|||
|
||||
assert_true(i, "Listener was not called")
|
||||
end
|
||||
|
||||
function test_verb_multicall_bug()
|
||||
local var = 0
|
||||
local bc1 = bc:init("a1", nil, {
|
||||
["verb"] = function(bc, foo)
|
||||
var = var + foo
|
||||
end
|
||||
})
|
||||
local bc2 = bc:init("a2")
|
||||
bc2:call_verb("verb", 1)
|
||||
assert_equal(1, var, "Verb was not called correctly")
|
||||
bc2:call_verb("verb", 2)
|
||||
assert_equal(3, var, "Verb was not called correctly(Second attempt)")
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue