Module:ScribuntoUnit/sandbox: Difference between revisions

Content deleted Content added
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
the error in the results table wikicode was in the row with success, not in the header
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'
Line 427:
text = text .. result.message .. '\n'
else
text = text .. '| ' .. successIcon .. ' || ' .. result.name .. ' || ||\n'
end
end