Jump to content

Module:DafYomi/testcases

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Ypn^2 (talk | contribs) at 23:05, 27 November 2024. The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
-- Unit tests for [[Module:DafYomi]]. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_daf()
	self:preprocess_equals('{{#invoke:DafYomi | date | year=2024|month=11|day=24}}', "''Bava Batra'' 152")
	self:preprocess_equals("{{#invoke:DafYomi | date | year=2024|month=11|day=24|format=''[[%m (Talmud)|%m]]'', page %d}}", "''[[Bava Batra (Talmud)|Bava Batra]]'', page 152")
end

return p