Modul:I18n/testcases: Bida antara revisi
Konten dihapus Konten ditambahkan
Geupeugöt laman ngön asoë '-- 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',...' |
(Hana bida)
|
Geunantoë barô bak 21 Buleuen Sikureueng 2020 14.53
Dokumentasi untuk modul ini dapat dibuat di Modul: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