Module:ScribuntoUnit/sandbox: Difference between revisions

Content deleted Content added
test deepToString
fixed wrong wikitext in the header of the results table; quoted values in failure message of asertEquals() to make evident where they begin and end
Line 173:
DebugHelper.raise({
ScribuntoUnit = true,
text = string.format("'Failed to assert that "%s" equals expected "%s"', tostring(actual), tostring(expected)),
actual = actual,
expected = expected,
Line 420:
local successIcon, failIcon = self.frame:preprocess('{{tick}}'), self.frame:preprocess('{{cross}}')
local text = '{| class="wikitable scribunto-test-table"\n'
text = text .. '! !! Test name !! Error\n'
for _, result in ipairs(testData.results) do
text = text .. '|-\n'