Module:niv-translit/testcases

Hello, you have come here looking for the meaning of the word Module:niv-translit/testcases. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:niv-translit/testcases, but we will also tell you about its etymology, its characteristics and you will know how to say Module:niv-translit/testcases in singular and plural. Everything you need to know about the word Module:niv-translit/testcases you have here. The definition of the word Module:niv-translit/testcases will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:niv-translit/testcases, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

2 of 10 tests failed. (refresh)

TextExpectedActual
test_translit:
Passedераӄjeraqjeraq
Passedмаёдьmajod̦majod̦
Passedпоездpojezdpojezd
Passedняӽņaẋņaẋ
Failedняӻрņaꜧ̇rņaġr
Passedатьхațxațx
Passedкʼеӄkʼeqkʼeq
Failedиф урладьғугирпарк ескидьif urlad̦ꜧugirpark jeskid̦if urlad̦γugirpark jeskid̦
Passedнюдьņud̦ņud̦
Passedӿилхhilxhilx

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