Module:Easter/testcases

Revision as of 18:28, 10 February 2022 by imported>Jonesey95 (Fix Linter errors.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

-- 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|','}}',{
{' '},{'Foo'},{'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