Jump to content

Module:Ital-translit/testcases

From Wiktionary, the free dictionary

1 of 1 test failed. (refresh)

TextExpectedActual
test_translits:
FailedSouth Picene: 𐌌𐌄⁚𐌉𐌑𐌍mefiínme iín

-- 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 .. ': <span class="Ital" lang="' .. lang .. '">[[' .. text .. '#' .. langname .. '|' .. text .. ']]</span>', module.tr(text, lang, 'Ital'), translit)
end

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

return tests