2 of 10 tests failed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
ераӄ | jeraq | jeraq | |
маёдь | majod̦ | majod̦ | |
поезд | pojezd | pojezd | |
няӽ | ņaẋ | ņaẋ | |
няӻр | ņaꜧ̇r | ņaġr | |
атьх | ațx | ațx | |
кʼеӄ | kʼeq | kʼeq | |
иф урладьғугирпарк ескидь | if urlad̦ꜧugirpark jeskid̦ | if urlad̦γugirpark jeskid̦ | |
нюдь | ņud̦ | ņud̦ | |
ӿилх | hilx | hilx |
local tests = require("Module:UnitTests")
local translit = require("Module:niv-translit")
function tests:check_translit(Cyrl, Latn)
self:equals(('<span lang="niv" class="Cyrl mention">]</span>'):format(Cyrl, Cyrl), translit.tr(Cyrl, 'niv', 'Cyrl'), Latn)
end
function tests:test_translit()
local examples = {
{ "ераӄ", "jeraq" },
{ "маёдь", "majod̦" },
{ "поезд", "pojezd" },
{ "няӽ", "ņaẋ" },
{ "няӻр", "ņaꜧ̇r" },
{ "атьх", "ațx" },
{ "кʼеӄ", "kʼeq" },
{ "иф урладьғугирпарк ескидь", "if urlad̦ꜧugirpark jeskid̦" },
{ "нюдь", "ņud̦" },
{ "ӿилх", "hilx" },
}
self:iterate(examples, "check_translit")
end
return tests