Module:Check for unknown parameters/testcases: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
function p:test_01_1_check_live() |
function p:test_01_1_check_live() |
||
self:preprocess_equals_many('{{Module talk:Check for unknown parameters/testcases/template call|', '}}', { |
self:preprocess_equals_many('{{Module talk:Check for unknown parameters/testcases/template call|', '}}', { |
||
{"arg1 |
{"arg1=arg1| arg2=arg2 | name=name | height=height | weight=weight | website=website", "Unknown name,Unknown height,Unknown website,Unknown weight,"}, |
||
}) |
}) |
||
end |
end |
||
Line 10: | Line 10: | ||
function p:test_01_2_check_sandbox() |
function p:test_01_2_check_sandbox() |
||
self:preprocess_equals_many('{{Module talk:Check for unknown parameters/testcases/template call/sandbox|', '}}', { |
self:preprocess_equals_many('{{Module talk:Check for unknown parameters/testcases/template call/sandbox|', '}}', { |
||
{"arg1 |
{"arg1=arg1| arg2=arg2 | name=name | height=height | weight=weight | website=website", "Unknown name,Unknown height,Unknown website,Unknown weight,"}, |
||
}) |
}) |
||
end |
end |
Revision as of 19:09, 29 December 2019
![]() | This is the test cases page for the module Module:Check for unknown parameters. Results of the test cases. |
-- 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()
self:preprocess_equals_many('{{Module talk:Check for unknown parameters/testcases/template call|', '}}', {
{"arg1=arg1| arg2=arg2 | name=name | height=height | weight=weight | website=website", "Unknown name,Unknown height,Unknown website,Unknown weight,"},
})
end
function p:test_01_2_check_sandbox()
self:preprocess_equals_many('{{Module talk:Check for unknown parameters/testcases/template call/sandbox|', '}}', {
{"arg1=arg1| arg2=arg2 | name=name | height=height | weight=weight | website=website", "Unknown name,Unknown height,Unknown website,Unknown weight,"},
})
end
return p