Module:I18n/testcases

< Module:I18n
Revision as of 15:05, 9 October 2017 by imported>Ans
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:I18n/testcases/doc

-- Example Unit tests for [[Module:i18n]]. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:_test()
	local i18n = { a = 'x', b = 'y', };
	require('Module:i18n').loadI18n('Module:i18n/testcases/i18n', i18n)
	return mw.dumpObject(i18n)
end

function p:test()
	self:preprocess_equals('{{#invoke:i18n/testcases|_test}}', '')
end

return p