All tests passed. (refresh)

လိက် ဗွဲမရံၚ်လၟဳ မဇေတ်ဍာံ ဒၞာဲတၞဟ်ခြာ
test_all:
Passed ئۆین (oyn) ʔoːi̯n ʔoːi̯n
Passed بۆر (bor) bɔːɾ bɔːɾ
Passed پەیژە (peyje) pɛi̯ʒa pɛi̯ʒa
Passed تۆو (tow) toːu̯ toːu̯
Passed تۆواو (towaw) to̞ːwaːu̯ to̞ːwaːu̯
Passed خووی (xûy) xuːi̯ xuːi̯
Passed دەعبا (de'ba) daʕbaː daʕbaː
Passed دێی (dêy) deːi̯ deːi̯
Passed ڕۆژ (roj) ro̞ːʒ ro̞ːʒ
Passed شوێن (şwên) ʃøe̯n ʃøe̯n
Passed قاز (qaz) qaːz qaːz
Passed قورئان (qur'an) qʊɾʔaːn qʊɾʔaːn
Passed کەونار (kewnar) kau̯naːɾ kau̯naːɾ
Passed کێو (kêw) ceːu̯ ceːu̯
Passed گەرم (germ) ɡaɾm ɡaɾm
Passed گێژ (gêj) ɟe̞ːʒ ɟe̞ːʒ
Passed مانگ (mang) maːŋɡ maːŋɡ
Passed نیو (nîw) niːu̯ niːu̯
Passed یەک (yek) jɛk jɛk

local tests = require("Module:UnitTests")
local m_IPA = require("Module:ckb-pron")
local lang = require("Module:languages").getByCode("ckb")

function link(term)
	return require("Module:links").full_link {term = term, lang = lang}
end

local function tag_IPA(IPA)
	return '<span class="IPA">' .. IPA .. "</span>"
end
local options = {display = tag_IPA}

function tests:check_pron(term, expected)
	tests:equals(link(term), m_IPA.phonemic(term), expected, options)
end

function tests:test_all()
	examples = {
		{"ئۆین", "ʔoːi̯n"},
		{"بۆر", "bɔːɾ"},
		{"پەیژە", "pɛi̯ʒa"},
		{"تۆو", "toːu̯"},
		{"تۆواو", "to̞ːwaːu̯"},
		{"خووی", "xuːi̯"},
		{"دەعبا", "daʕbaː"},
		{"دێی", "deːi̯"},
		{"ڕۆژ", "ro̞ːʒ"},
		{"شوێن", "ʃøe̯n"},
		{"قاز", "qaːz"},
		{"قورئان", "qʊɾʔaːn"},
		{"کەونار", "kau̯naːɾ"},
		{"کێو", "ceːu̯"},
		{"گەرم", "ɡaɾm"},
		{"گێژ", "ɟe̞ːʒ"},
		{"مانگ", "maːŋɡ"},
		{"نیو", "niːu̯"},
		{"یەک", "jɛk"}
	}

	tests:iterate(examples, "check_pron")
end

return tests