Module:xal-translit/testcases

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

1 of 3 tests failed. (refresh)

TextExpectedActual
test_translit:
FailedХальмг ТаңһчXal'mg TañhçXalʹmg Tañğç
Passedмөрнmörnmörn
PassedӘрәсәÄräsäÄräsä

local tests = require('Module:UnitTests')
local tr = require('Module:xal-translit').tr

local tag = mw.text.tag
local function tag_Kalmyk(text)
	return tag("span", { class = "Cyrl", lang = "xal" }, text)
end

function tests:check_translit(example, expected)
	self:equals(
		tag_Kalmyk(example),
		tr(example),
		expected)
end

function tests:test_translit()
	local examples = {
		{ "Хальмг Таңһч", "Xal'mg Tañhç" },
		{ "мөрн", "mörn" },
		{ "Әрәсә", "Äräsä" },
	}
	self:iterate(examples, "check_translit")
end

return tests