Jump to content

Module:Marriage/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Pedantical (talk | contribs) at 05:59, 7 January 2024 (add some test cases). 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:Marriage | reasonFormatter | end=Divorced}}', 'divorced')
	self:preprocess_equals('{{#invoke:Marriage | reasonFormatter | end= divorced}}', 'divorced')
	self:preprocess_equals('{{#invoke:Marriage | reasonFormatter | end=divorced }}', 'divorced')
	self:preprocess_equals('{{#invoke:Marriage | reasonFormatter | end= Divorced }}', 'divorced')
end

return p