Jump to content

Module:DafYomi/testcases

From Wikipedia, the free encyclopedia
-- 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