diff --git a/tests/testfx.lua b/tests/testfx.lua index 45867c8c..d7b9fa37 100644 --- a/tests/testfx.lua +++ b/tests/testfx.lua @@ -99,6 +99,9 @@ function test.isequal(expected, actual) if type(expected) == "table" then + if expected and not actual then + test.fail("expected table, got nil") + end if #expected < #actual then test.fail("expected %d items, got %d", #expected, #actual) end