Module:Roman/testcases
Appearance
![]() | This is the test cases page for the module Module:Roman. Results of the test cases. |
-- Unit tests for [[Module:Roman/sandbox]]. Click talk page to run tests.
local moduleName = 'Roman/sandbox' -- assigning this to a variable as it is later used to generate an #invoke statement.
local mainFuncName = 'main'
local mm = require('Module:' .. moduleName)
local p = require('Module:UnitTests')
function p.buildInvocation(functionName, args)
args = args or {}
return '{{#invoke:' .. moduleName .. '|' .. functionName .. unpack(args) .. '}}'
end
function p:test_preliminary()
local argarray = {
{},
{},
}
local invoke = self.buildInvocation(mainFuncName, {'0'})
self:preprocess_equals(invoke, 'N')
end
return p