Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a400e183ce9d14c2

Jump to content

Module:Easter/testcases

From Wikipedia, the free encyclopedia
-- Click talk page to run unit tests.
local p = require('Module:UnitTests')

function p:tests()
	--year
    self:preprocess_equals_preprocess_many('{{#invoke:Easter/sandbox | Calculate|','}}', '{{#invoke:Easter | Calculate|','}}',{
{' '},{'Foo'},{'2001'}
},{})
	--format
    self:preprocess_equals_preprocess_many('{{#invoke:Easter/sandbox | Calculate|','}}', '{{#invoke:Easter | Calculate|','}}',{
{'2001|day=Easter|format=F j'},{'2001|day=Easter|format=F j|method=Eastern'},{'2001|method=Eastern'}
},{})
	--method
    self:preprocess_equals_preprocess_many('{{#invoke:Easter/sandbox | Calculate|','}}', '{{#invoke:Easter | Calculate|','}}',{
{'1581'},{'1581|method=Julian'},{'1581|method=Gregorian'},{'1585|method=Julian'},{'1585|method=Gregorian'},{'1585|method=Eastern'},{'1585|method=Revised'},{'200|method=Julian'},{'1066|method=Julian'},{'1066|method=Gregorian'}
},{})
	--CURRENTYEAR
    self:preprocess_equals_preprocess_many('{{#invoke:Easter/sandbox | Calculate|','}}', '{{#invoke:Easter | Calculate|','}}',{
{'{{CURRENTYEAR}}'},{'{{CURRENTYEAR}}|day=Easter|format=F j'},{'{{CURRENTYEAR}}|day=Easter|format=F j|method=Eastern'},{'{{CURRENTYEAR}}|method=Eastern'}
},{})
end

return p