Jump to content

Module:Easter/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Pppery (talk | contribs) at 21:49, 5 June 2019 (Pppery moved page Module:Easter/sandbox/testcases to Module:Easter/testcases without leaving a redirect: Testcases naming convention). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- Click talk page to run unit tests.
local p = require('Module:UnitTests')

function p:test_hello()
    self:preprocess_equals_preprocess_many('{{#invoke:Easter/sandbox | Calculate|','}}', '{{#invoke:Easter | Calculate|','}}',{
{''},{'2001'},{'2001|day=Easter|format=F j'},{'2001|day=Easter|format=F j|method=Eastern'},{'2001|method=Eastern'},{'{{CURRENTYEAR}}'},{'{{CURRENTYEAR}}|day=Easter|format=F j'},{'{{CURRENTYEAR}}|day=Easter|format=F j|method=Eastern'},{'{{CURRENTYEAR}}|method=Eastern'}
},{})
end

return p