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
Line 3:
 
function p:test_01_1_check_live()
self:preprocess_equals_many('{{#invokeModule talk:Check for unknown parameters/testcases/template call|check', '}}', {
{"arg1 | args2 | name | height | weight | website", "Unknown 1 = name ,Unknown 2 = height ,Unknown 3 = weight ,Unknown 4 = website,"},
{"|arg1|arg2|arg3|argN", ""},
})
end
 
function p:test_01_2_check_sandbox()
self:preprocess_equals_many('{{#invokeModule talk:Check for unknown parameters/sandboxtestcases/template call|check', '}}', {
{"arg1 | args2 | name | height | weight | website", "Unknown 1 = name ,Unknown 2 = height ,Unknown 3 = weight ,Unknown 4 = website,"},
{"|arg1|arg2|arg3|argN", ""},
})
end