Module:Easter/testcases: Difference between revisions
Appearance
Content deleted Content added
start |
more tests |
||
Line 1: | Line 1: | ||
-- |
-- Click talk page to run unit tests. |
||
local p = require('Module:UnitTests') |
local p = require('Module:UnitTests') |
||
function p:test_hello() |
function p:test_hello() |
||
self:preprocess_equals_preprocess_many('{{#invoke:Easter | Calculate','}}', '{{#invoke:Easter |
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'} |
|||
{''},{'|2001'},{'|{{CURRENTYEAR}}'} |
|||
},{}) |
},{}) |
||
end |
end |
Revision as of 06:32, 25 July 2016
![]() | This is the test cases page for the module Module:Easter. Results of the test cases. |
-- 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