Module:User:Taokailam/Test

local tests = require("Module:UnitTests") local m_tr = require("Module:User:Sartma/he-translit") local lang = require("Module:languages").getByCode("he")

local function check_tr(transliterate) return function(self, word, expected) self:equals(			require("Module:links").full_link({term = word, lang = lang}, nil, true),			mw.ustring.toNFC(transliterate(word)),			mw.ustring.toNFC(expected)		) end end

function tests:test_MH_tr local MH_examples = { "Modern Hebrew", { 'מַקְלֵעַ', "makléa" }, { 'נֹגַהּ', 'nógah' }, { 'גַּבֹהַּ', "gavóah"}, { 'אִשָּׁה', 'ishá'}, { 'אִישָׁהּ', 'isháh'}, { 'אָמָּנוּת', 'omanút'}, { 'צָהֳרַיִם', 'tsohoráyim'}, }	tests:iterate(MH_examples, check_tr(m_tr.MH_tr))

end

return tests