Merge pull request #790 from Blizzard/fix-test-api
[self-test] fix nil dereference crash in test.isequal
This commit is contained in:
commit
5df2b3d90a
@ -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
|
||||
|
Reference in New Issue
Block a user