All tests passed. (refresh)
Text | Expected | Actual | Comments | |
---|---|---|---|---|
ᠠᠪᡴᠠ (abka) | ap.qʰa | ap.qʰa | ||
ᠠᠨᡳᠶᠠ (aniya) | a.ɲa | a.ɲa | ||
ᠠᡤᠠ (aga) | a.qa | a.qa | ||
ᠣᡵᡳᠨ (orin) | ɔ.rin | ɔ.rin | ||
ᠨᠠᡩᠠᠨ (nadan) | na.tan | na.tan | ||
ᠨᠠᡩᠠᠨᡷᡠ (nadanju) | na.tan.t͡ʃu | na.tan.t͡ʃu | ||
ᠨᡳᠨᡷᡠ (ninju) | nin.t͡ʃu | nin.t͡ʃu | ||
ᠨᡳᠩᡤᡠᠨ (ninggun) | niŋ.ŋun | niŋ.ŋun | ||
ᠨᡳᡴᠠᠨ (nikan) | ni.qʰan | ni.qʰan | ||
ᠪᡳ (bi) | pi | pi | ||
ᠪᡳᡵᠠ (bira) | pi.ra | pi.ra | ||
ᠮᠠᠨᡷᡠ (manju) | man.t͡ʃu | man.t͡ʃu | ||
ᠮᠠᠨᡷᡠ ᡤᡳᠰᡠᠨ (manju gisun) | man.t͡ʃu.ki.sun | man.t͡ʃu.ki.sun | ||
ᠮᠣᡵᡳᠨ (morin) | mɔ.rin | mɔ.rin | ||
ᠮᡠᠰᡝ (muse) | mu.sə | mu.sə | ||
ᠮᡠᡴᡝ (muke) | mu.kʰə | mu.kʰə | ||
ᠮᡳᠩᡤᠠᠨ (minggan) | miŋ.ŋan | miŋ.ŋan | ||
ᠰᠣᠯᠣᠨᡨᡠ (solontu) | sɔ.lɔn.tʰu | sɔ.lɔn.tʰu | ||
ᠰᡠᠨᡷᠠ (sunja) | sun.t͡ʃa | sun.t͡ʃa | ||
ᠰᡠᠰᠠᡳ (susai) | su.sai | su.sai | ||
ᠰᡠᠸᡝ (suwe) | swə | swə | ||
ᠰᡳ (si) | ɕi | ɕi | ||
ᠴᡝ (ce) | t͡ʃʰə | t͡ʃʰə | ||
ᡷᠠᡴᡡᠨ (jakūn) | t͡ʃa.qʰʊn | t͡ʃa.qʰʊn | ||
ᡷᠠᡴᡡᠨᡷᡠ (jakūnju) | t͡ʃa.qʰʊn.t͡ʃu | t͡ʃa.qʰʊn.t͡ʃu | ||
ᡷᡠᠸᠠᠨ (juwan) | t͡ʃwan | t͡ʃwan | ||
ᡷᡠᠸᡝ (juwe) | t͡ʃwə | t͡ʃwə | ||
ᡝᠮᡠ (emu) | ə.mu | ə.mu | ||
ᡠᠰᡳᡥᠠ (usiha) | u.ɕi.χa | u.ɕi.χa | ||
ᡠᡟᡠᠨ (uyun) | u.jun | u.jun | ||
ᡠᡟᡠᠨᡷᡠ (uyunju) | u.jun.t͡ʃu | u.jun.t͡ʃu | ||
ᡤᡡᠰᡳᠨ (gūsin) | qʊ.ɕin | qʊ.ɕin | ||
ᡤᡳᠰᡠᠨ (gisun) | ki.sun | ki.sun | ||
ᡥᠠᡥᠠ (haha) | χa.χa | χa.χa | ||
ᡦᠣᠣ (poo) | pʰoː | pʰoː | ||
ᡧᠣᠯᠣᠨᡨᡠ (šolontu) | ʃɔ.lɔn.tʰu | ʃɔ.lɔn.tʰu | ||
ᡧᡠᠨ (šun) | ʃun | ʃun | ||
ᡨᠠᠩᡤᡡ (tanggū) | tʰaŋ.ŋʊ | tʰaŋ.ŋʊ | ||
ᡨᠠᠴᡳᡴᡡ (tacikū) | tʰa.t͡ɕʰi.qʰʊ | tʰa.t͡ɕʰi.qʰʊ | ||
ᡩᡝᡥᡳ (dehi) | tə.xi | tə.xi | ||
ᡩᡠᡳᠨ (duin) | tuin | tuin | ||
ᡳ (i) | i | i | ||
ᡳᠯᠠᠨ (ilan) | i.lan | i.lan | ||
ᡳᠯᡥᠠ (ilha) | il.χa | il.χa | ||
ᡬᠠᠨ (g'an) | kan | kan | ||
ᠺᠣ (k'o) | kʰɔ | kʰɔ | ||
ᠰᡝᠩᡴᡠᠯᡝ (sengkule) | səŋ.kʰu.lə | səŋ.kʰu.lə | ||
ᡰᡳᠪᡝᠨ (žiben) | ʐi.pən | ʐi.pən | ||
ᡮᠠᡳᡶᡠᠩ (ts'aifung) | t͡sʰai.fuŋ | t͡sʰai.fuŋ | ||
ᡯᠠᠩ (dzang) | t͡saŋ | t͡saŋ | ||
ᡷᠶᠯᡳ (jyli) | ʈ͡ʂʐ.li | ʈ͡ʂʐ.li | ||
ᡷᡳᡥᡳᠶᠠᠨ (jyhiyan) | ʈ͡ʂʐ.xjan | ʈ͡ʂʐ.xjan | ||
ᡥᡡᠸᠠᠩᡩᡳ (hūwangdi) | χwaŋ.ti | χwaŋ.ti | ||
ᠣᠣᡯᡝ (oodze) | oː.t͡sə | oː.t͡sə | ||
ᡥᡡᠸᠠᠵᡳᠶᠣᠣ (hūwajiyoo) | χwa.t͡ɕioː | χwa.t͡ɕioː | ||
ᡦᡳᡟᠠᠨ (piyan) | pʰjan | pʰjan | ||
ᠰᡟᠴᡠᠸᠠᠨ (sycuwan) | sz̩.t͡ʃʰwan | sz̩.t͡ʃʰwan | ||
ᡤᡳᠣᡳ (gioi) | ky | ky |
local tests = require("Module:UnitTests")
local m_IPA = require("Module:mnc-IPA")
local function tag_IPA(IPA)
return '<span class="IPA">' .. IPA .. '</span>'
end
function tests:check_output(term, expected, comment)
self:equals(
m_IPA.link(term),
tag_IPA(m_IPA.toIPA(term)),
tag_IPA(expected),
{ comment = comment }
)
end
function tests:test_all()
examples = {
{ "ᠠᠪᡴᠠ", "ap.qʰa" },
{ "ᠠᠨᡳᠶᠠ", "a.ɲa" },
{ "aga", "a.qa" },
{ "orin", "ɔ.rin" },
{ "nadan", "na.tan" },
{ "nadanju", "na.tan.t͡ʃu" },
{ "ninju", "nin.t͡ʃu" },
{ "ninggun", "niŋ.ŋun" },
{ "nikan", "ni.qʰan" },
{ "bi", "pi" },
{ "bira", "pi.ra" },
{ "manju", "man.t͡ʃu" },
{ "manju gisun", "man.t͡ʃu.ki.sun" },
{ "morin", "mɔ.rin" },
{ "muse", "mu.sə" },
{ "muke", "mu.kʰə" },
{ "minggan", "miŋ.ŋan" },
{ "solontu", "sɔ.lɔn.tʰu" },
{ "sunja", "sun.t͡ʃa" },
{ "susai", "su.sai" },
{ "suwe", "swə" },
{ "si", "ɕi" },
{ "ce", "t͡ʃʰə" },
{ "jakūn", "t͡ʃa.qʰʊn" },
{ "jakūnju", "t͡ʃa.qʰʊn.t͡ʃu" },
{ "juwan", "t͡ʃwan" },
{ "juwe", "t͡ʃwə" },
{ "emu", "ə.mu" },
{ "usiha", "u.ɕi.χa" },
{ "uyun", "u.jun" },
{ "uyunju", "u.jun.t͡ʃu" },
{ "gūsin", "qʊ.ɕin" },
{ "gisun", "ki.sun" },
{ "haha", "χa.χa" },
{ "poo", "pʰoː" },
{ "šolontu", "ʃɔ.lɔn.tʰu" },
{ "šun", "ʃun" },
{ "tanggū", "tʰaŋ.ŋʊ" },
{ "tacikū", "tʰa.t͡ɕʰi.qʰʊ" },
{ "dehi", "tə.xi" },
{ "duin", "tuin" },
{ "i", "i" },
{ "ilan", "i.lan" },
{ "ilha", "il.χa" },
{ "g'an", "kan" },
{ "k'o", "kʰɔ" },
{ "sengkule", "səŋ.kʰu.lə" },
{ "žiben", "ʐi.pən" },
{ "ᡮᠠᡳᡶᡠᠩ", "t͡sʰai.fuŋ" },
{ "ᡯᠠᠩ", "t͡saŋ" },
{ "ᡷᠶᠯᡳ", "ʈ͡ʂʐ.li" },
{ "ᡷᡳᡥᡳᠶᠠᠨ", "ʈ͡ʂʐ.xjan" },
{ "hūwangdi", "χwaŋ.ti" },
{ "oodze", "oː.t͡sə" },
{ "ᡥᡡᠸᠠᠵᡳᠶᠣᠣ", "χwa.t͡ɕioː" },
{ "piyan", "pʰjan" },
{ "sycuwan", "sz̩.t͡ʃʰwan" },
{ "gioi", "ky" },
}
--[[ Copy the following to add more examples:
{ "", "" },
]]
tests:iterate(examples, "check_output")
end
return tests