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