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