Jump to content

Module:Easter/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by PC-XT (talk | contribs) at 06:06, 25 July 2016 (start). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- Example Unit tests for [[Module:Bananas]]. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_hello()
    self:preprocess_equals_preprocess_many('{{#invoke:Easter | Calculate','}}', '{{#invoke:Easter/sandbox | Calculate','}}',{
{''},{'|2001'},{'|{{CURRENTYEAR}}'}
},{})
end

return p