Module:Check for unknown parameters/testcases: Difference between revisions

Content deleted Content added
Created page with '-- Unit tests for Module:Check for unknown parameters. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_01_1_check_live()...'
 
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 2:
local p = require('Module:UnitTests')
 
function p:test_01_1_check_livetest_01_1_check()
self:preprocess_equals_manypreprocess_equals_sandbox_many('{{#invokeModule:Check for unknown parameters|check/testcases/template call', '}}', {
{"arg1=arg1| arg2=arg2 | name=name | height=height | weight=weight | website=website", "Unknown name,Unknown height,Unknown website,Unknown weight,"},
{"|arg1|arg2|arg3|argN", ""},
}, {nowiki=1})
})
end
 
function p:test_01_2_check_sandbox()
self:preprocess_equals_many('{{#invoke:Check for unknown parameters/sandbox|check', '}}', {
{"|arg1|arg2|arg3|argN", ""},
})
end