Module:Ital-translit/testcases
- පහත දැක්වෙන උපදෙස්, Module:Ital-translit/testcases/documentation හි පිහිටා ඇත. Module:Ital-translit/testcases/documentation]]. [සංස්කරණය] Categories were auto-generated by Module:module categorization. [edit]
- ප්රයෝජනවත් සබැඳි: root page • root page’s subpages • සබැඳි • transclusions • tested module • sandbox
All tests passed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
South Picene: 𐌌𐌄⁚𐌉𐌑𐌍 | mefiín | mefií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