Module:Wd/sandbox/testcases/common
Appearance
local p = {}
-- generates unit test object to be returned by a specific testcase module
-- first argument: name of the module to test
-- second argument: a table with the structure described in testcaseTable or a module name; used for reference values
function p:generate_unit_tests_object(frame)
local unit_tests_module = require("Module:UnitTests")
-- TODO: handle the testcase 3
function unit_tests_module:test_abc()
unit_tests_module:preprocess_equals_many(
"{{#invoke:" .. frame.args[1] .. "|",
"}}",
frame.args[2]
)
end
return unit_tests_module
end
return p