Jump to content

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

From Wikipedia, the free encyclopedia
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 difference)

Revision as of 18:38, 29 December 2019

-- 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