Jump to content

Module:ParameterCount/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by MarioGom (talk | contribs) at 16:45, 17 April 2021 (oops, not a valid testing method here). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- Unit tests for [[Module:ParameterCount]]. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_all()
    self:preprocess_equals_many('{{#invoke:ParameterCount|all|', '}}', {
    	{'', '0'},
    	-- TODO: arguments from parent template cannot be tested here
    })
end

return p