Module:kk-translit/testcases

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

9 of 12 tests failed. (refresh)

TextExpectedActual
test_translit:
Passedқазақqazaqqazaq
Passedмаркетингmarketiñmarketiñ
Passedангинаanginaangina
Failedядроyadroiadro
Failedяғниyağnıyiağni
Failedавтономияavtonomiyaavtonomia
Failedаялдамаayaldamaaialdama
Failedщёткаcotkaşiotka
Failedкиімkiyimkiım
Failedтиынtıyıntiyn
Failedжууjuwıwjuu
Failedбілуbiliwbılu

local tests = require("Module:UnitTests")
local kk_translit = require("Module:kk-translit")

function tests:check_translit(Cyrl, Latn)
	self:equals(('<span lang="kk" class="Cyrl mention">]</span>'):format(Cyrl, Cyrl), kk_translit.tr(Cyrl, 'kk', 'Cyrl'), Latn)
end

function tests:test_translit()
	local examples = {
		{ "қазақ", "qazaq" },
		{ "маркетинг", "marketiñ" }, -- final or pre-consonantal positions only
		{ "ангина", "angina" },
		{ "ядро", "yadro" },
		{ "яғни", "yağnıy" },	-- this is an exception
		{ "автономия", "avtonomiya" },
		{ "аялдама", "ayaldama" },
		{ "щётка", "cotka" },
		{ "киім", "kiyim" }, 
		{ "тиын", "tıyın" }, 
		{ "жуу", "juwıw" }, 
		{ "білу", "biliw" }, 
		
	}
	self:iterate(examples, "check_translit")
end

return tests