Print full text in test_assertions (#522)

It makes it easier to see what is wrong.
This commit is contained in:
Tom van Dijck 2016-06-22 08:36:14 -07:00 committed by GitHub
parent 3455d95a19
commit 6b30ce5908

View File

@ -28,7 +28,7 @@
local etxt = eit()
while etxt do
if (etxt ~= atxt) then
m.fail("(%d) expected:\n%s\n...but was:\n%s", linenum, etxt, atxt)
m.fail("(%d) expected:\n%s\n...but was:\n%s\nfulltext:\n%s", linenum, etxt, atxt, actual)
end
linenum = linenum + 1