Jump to content

Module:DafYomi/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ypn^2 (talk | contribs) at 20:02, 24 November 2024. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests.
local p = require('Module:UnitTests')

-- Example unit test.
function p:test_hello()
	self:preprocess_equals('{{#invoke:Sandbox/ypn^2 | date | year=2024|month=11|day=24}}', 'Bava Batra 152')
	self:preprocess_equals('{{#invoke:Sandbox/ypn^2 | today | year=2024|month=11|day=24}}', 'Bava Batra 152')
end

return p