Skip to content

Commit

Permalink
Merge pull request #790 from Blizzard/fix-test-api
Browse files Browse the repository at this point in the history
[self-test] fix nil dereference crash in test.isequal
  • Loading branch information
tvandijck committed May 23, 2017
2 parents 34aaff9 + ff9114c commit 5df2b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/self-test/test_assertions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5df2b3d

Please sign in to comment.