From 6b30ce59083fd7a4608c17f34aceab8d5f20e3a5 Mon Sep 17 00:00:00 2001 From: Tom van Dijck Date: Wed, 22 Jun 2016 08:36:14 -0700 Subject: [PATCH] Print full text in test_assertions (#522) It makes it easier to see what is wrong. --- modules/self-test/test_assertions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/self-test/test_assertions.lua b/modules/self-test/test_assertions.lua index a9361275..16d3e574 100644 --- a/modules/self-test/test_assertions.lua +++ b/modules/self-test/test_assertions.lua @@ -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