Module:Ital-translit/testcases

-- Unit tests for Module:Ital-translit. Refresh page to run tests. local tests = require('Module:UnitTests') local module = require('Module:Ital-translit') local m_lang = require('Module:languages')

function tests:check_translit(lang, text, translit) local langname = m_lang.getByCode(lang):getCanonicalName self:equals(langname .. ': ' .. text .. ' ', module.tr(text, lang, 'Ital'), translit) end

function tests:test_translits self:check_translit('spx', '𐌌𐌄⁚𐌉𐌑𐌍', 'mefiín') end

return tests