[self-test] fix nil dereference crash in test.isequal
This commit is contained in:
parent
34aaff9c66
commit
ff9114c031
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user