Jump to content

Module:Check for unknown parameters/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Gonnym (talk | contribs) at 18:38, 29 December 2019 (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()...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
-- 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('{{#invoke:Check for unknown parameters|check', '}}', {
	{"|arg1|arg2|arg3|argN", ""},
	})
end

function p:test_01_2_check_sandbox()
	self:preprocess_equals_many('{{#invoke:Check for unknown parameters/sandbox|check', '}}', {
	{"|arg1|arg2|arg3|argN", ""},
	})
end

return p