Module:UnitTests: Difference between revisions

Content deleted Content added
trying to allow for script error
m Reverted edits by קיפודנחש (talk) to last version by Happy5214
Line 18:
 
function UnitTester:preprocess_equals(text, expected, options)
local ok, resultactual = pcall(frame.:preprocess, frame, (text)
local actual = ok and result or "Script Error"
if actual == expected then
result_table = result_table .. '| ' .. tick
Line 39 ⟶ 38:
 
function UnitTester:preprocess_equals_preprocess(text1, text2, options)
local ok, resultactual = pcall(frame.:preprocess, frame, (text1)
local actual = ok and result or 'Script Error'
local expected = frame:preprocess(text2)
if actual == expected then