Jump to content

Module:FillDate/testcases

From Wikipedia, the free encyclopedia
-- 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:FillDate|main|2023}}', '1 January 2023')
	self:preprocess_equals('{{#invoke:FillDate|main|March 2023}}', '1 March 2023')
	self:preprocess_equals('{{#invoke:FillDate|main|14 March 2023}}', '14 March 2023')
end

return p