[self-test] fix nil dereference crash in test.isequal

This commit is contained in:
Tom van Dijck 2017-05-19 14:35:30 -07:00
parent 34aaff9c66
commit ff9114c031

View File

@ -140,7 +140,7 @@
end
else
if (expected ~= actual) then
m.fail(depth, "expected %s but was %s", expected, actual)
m.fail(depth, "expected %s but was %s", expected, actual or "nil")
end
end
return true