Module:as-IPA/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:as-IPA/testcases/documentation. [edit] Categories were auto-generated by Module:module categorization. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • sandbox
4 of 21 tests failed. (refresh)
Text | Expected | Actual | Comments | |
---|---|---|---|---|
মই (moi) | mɔɪ | mɔɪ | ||
দেশ (dex) | dɛx | dɛx | ||
মোৰ (mür) | mʊɹ | mʊɹ | ||
শক্তি (xokti) | xɔk.ti | xɔk.ti | ||
ঔষধ (ouxodh) | oʊ.xɔdʱ | oʊ.xɔdʱ | ||
পৰিয়াল (porial) | po.ɹial | pɔ.ɹial | ||
সোঁফালে (xü̃phale) | xʊ̃.pʰa.lɛ | xʊ̃.pʰa.lɛ | ||
স্পৰ্শ (sporxo) | spɔɹ.xɔ | spɔɹ.xɔ | ||
নাঙল (naṅol) | na.ŋɔl | na.ŋɔl | ||
হিংসা (hiṅxa) | ɦiŋ.xa | ɦiŋ.xa | ||
ঐতিহাসিক (oitihaxik) | oɪ.ti.ɦa.xik | oɪ.ti.ɦa.xik | ||
শহা পহু (xoha pohu) | xɔ.ɦa po.ɦu | xɔ.ɦa pɔ.ɦu | ||
সম্পূৰ্ণ (xompurno) | xɔm.puɹ.nɔ | xɔm.puɹ.nɔ | ||
মগজু (mogozu) | mo.ɡo.zu | mɔ.ɡɔ.zu | ||
বিৱৰণ (biworon) | bi.wɔ.ɹɔn | bi.wɔ.ɹɔn | ||
ৰাজ্য (raizzo) | ɹaɪd.ʑɔ | ɹaɪd.ʑɔ | ||
জ্বৰ (zor) | zɔɹ | zɔɹ | ||
অধিকাৰ (odhikar) | o.dʱi.kaɹ | ɔ.dʱi.kaɹ | ||
থকা (thoka) | tʰɔ.ka | tʰɔ.ka | ||
খেল (khel) | kʰɛl | kʰɛl | ||
মানুহ (manuh) | ma.nuʱ | ma.nuʱ |
local tests = require("Module:UnitTests")
local m_IPA = require("Module:as-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 = {
{ "মই", "mɔɪ" },
{ "দেশ", "dɛx" },
{ "মোৰ", "mʊɹ"},
{ "শক্তি", "xɔk.ti" },
{ "ঔষধ", "oʊ.xɔdʱ" },
{ "পৰিয়াল", "po.ɹial" },
{ "সোঁফালে", "xʊ̃.pʰa.lɛ" },
{ "স্পৰ্শ", "spɔɹ.xɔ" },
{ "নাঙল", "na.ŋɔl"},
{ "হিংসা", "ɦiŋ.xa" },
{ "ঐতিহাসিক", "oɪ.ti.ɦa.xik" },
{ "শহা পহু", "xɔ.ɦa po.ɦu" },
{ "সম্পূৰ্ণ", "xɔm.puɹ.nɔ" },
{ "মগজু", "mo.ɡo.zu" },
{ "বিৱৰণ", "bi.wɔ.ɹɔn"},
{"ৰাজ্য", "ɹaɪd.ʑɔ"},
{"জ্বৰ", "zɔɹ"},
{"অধিকাৰ", "o.dʱi.kaɹ"},
{"থকা", "tʰɔ.ka"},
{"খেল", "kʰɛl"},
{"মানুহ", "ma.nuʱ"},
}
--[[ Copy the following to add more examples:
{ "", "" },
]]
tests:iterate(examples, "check_output")
end
return tests