Merge pull request #790 from Blizzard/fix-test-api

[self-test] fix nil dereference crash in test.isequal
This commit is contained in:
Tom van Dijck 2017-05-23 14:06:13 -07:00 committed by GitHub
commit 5df2b3d90a

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