Module:ParameterCount/testcases

< Module:ParameterCount
Revision as of 17:45, 17 April 2021 by imported>MarioGom (oops, not a valid testing method here)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:ParameterCount/testcases/doc

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