diff options
Diffstat (limited to 'test/test-supple.objects.lua')
-rw-r--r-- | test/test-supple.objects.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test-supple.objects.lua b/test/test-supple.objects.lua index 829de47..3af87a7 100644 --- a/test/test-supple.objects.lua +++ b/test/test-supple.objects.lua @@ -87,8 +87,7 @@ function suite.receive_function() assert(type(last_cb) == "table", "Call didn't reach callback") assert(last_cb.tag == unique_id, "Tag not propagated") assert(last_cb.name == "__call", "__call not propagated") - assert(last_cb.args[1] == obj, "obj not propagated") - assert(last_cb.args[2] == "fish", "args not propagated") + assert(last_cb.args[1] == "fish", "args not propagated") local obj2 = objects.receive { tag = unique_id } @@ -136,7 +135,7 @@ function suite.receive_table() assert(capi.type(obj) == "table", "Not a proxied function") assert(obj.thingy == last_cb, "Didn't proxy index") assert(last_cb.name == "__index", "didn't proxy") - assert(last_cb.args[2] == "thingy", "proxy wasn't right") + assert(last_cb.args[1] == "thingy", "proxy wasn't right") end function suite.received_object_gc() |