Module:szy-pron/testcases
Appearance
- The following documentation is located at Module:szy-pron/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
All tests passed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
ina (broad) | i.ˈna | i.ˈna | |
ina (narrow) | i.ˈna | i.ˈna | |
bau (broad) | ba.ˈu | ba.ˈu | |
bau (narrow) | ba.ˈu | ba.ˈu | |
ancila (broad) | an.t͡si.ˈla | an.t͡si.ˈla | |
ancila (narrow) | an.t͡ɕi.ˈla | an.t͡ɕi.ˈla | |
katuud (broad) | ka.tu.ˈud | ka.tu.ˈud | |
katuud (narrow) | ka.tu.ˈud | ka.tu.ˈud | |
bukes (broad) | bu.ˈkəs | bu.ˈkəs | |
bukes (narrow) | bu.ˈkəs | bu.ˈkəs | |
wacu (broad) | wa.ˈt͡su | wa.ˈt͡su | |
wacu (narrow) | wa.ˈt͡su | wa.ˈt͡su | |
kuskus (broad) | kus.ˈkus | kus.ˈkus | |
kuskus (narrow) | kus.ˈkus | kus.ˈkus | |
liluc (broad) | li.ˈlut͡s | li.ˈlut͡s | |
liluc (narrow) | li.ˈlut͡s | li.ˈlut͡s | |
sawsawni (broad) | saw.saw.ˈni | saw.saw.ˈni | |
sawsawni (narrow) | saw.saw.ˈni | saw.saw.ˈni | |
hemay (broad) | hə.ˈmaj | hə.ˈmaj | |
hemay (narrow) | h(ə).ˈmaj | h(ə).ˈmaj | |
pwakih (broad) | pwa.ˈkih | pwa.ˈkih | |
pwakih (narrow) | pwa.ˈkih | pwa.ˈkih | |
hakya (broad) | ha.ˈkja | ha.ˈkja | |
hakya (narrow) | ha.ˈkja | ha.ˈkja | |
buting (broad) | bu.ˈtiŋ | bu.ˈtiŋ | |
buting (narrow) | bu.ˈtiŋ | bu.ˈtiŋ | |
niyazu’ (broad) | ni.ja.ˈzuʡ | ni.ja.ˈzuʡ | |
niyazu’ (narrow) | ni.ja.ˈzoʡ | ni.ja.ˈzoʡ | |
adupen (broad) | a.du.ˈpən | a.du.ˈpən | |
adupen (narrow) | a.du.ˈpən | a.du.ˈpən | |
takuwanan (broad) | ta.ku.wa.ˈnan | ta.ku.wa.ˈnan | |
takuwanan (narrow) | ta.ku.wa.ˈnan | ta.ku.wa.ˈnan | |
aku (broad) | a.ˈku | a.ˈku | |
aku (narrow) | a.ˈku | a.ˈku | |
ama (broad) | a.ˈma | a.ˈma | |
ama (narrow) | a.ˈma | a.ˈma | |
bihkac (broad) | bih.ˈkat͡s | bih.ˈkat͡s | |
bihkac (narrow) | bih.ˈkat͡s | bih.ˈkat͡s | |
canan (broad) | t͡sa.ˈnan | t͡sa.ˈnan | |
canan (narrow) | t͡sa.ˈnan | t͡sa.ˈnan | |
cacudadan (broad) | t͡sa.t͡su.da.ˈdan | t͡sa.t͡su.da.ˈdan | |
cacudadan (narrow) | t͡sa.t͡su.da.ˈdan | t͡sa.t͡su.da.ˈdan | |
ci (broad) | t͡si | t͡si | |
ci (narrow) | t͡ɕi | t͡ɕi | |
cuwa (broad) | t͡su.ˈwa | t͡su.ˈwa | |
cuwa (narrow) | t͡su.ˈwa | t͡su.ˈwa | |
edek (broad) | ə.ˈdək | ə.ˈdək | |
edek (narrow) | ə.ˈdək | ə.ˈdək | |
i (broad) | i | i | |
i (narrow) | i | i | |
isu (broad) | i.ˈsu | i.ˈsu | |
isu (narrow) | i.ˈsu | i.ˈsu | |
saw (broad) | saw | saw | |
saw (narrow) | saw | saw | |
kuyza (broad) | kuj.ˈza | kuj.ˈza | |
kuyza (narrow) | kuj.ˈza | kuj.ˈza | |
pizizawi (broad) | pi.zi.za.ˈwi | pi.zi.za.ˈwi | |
pizizawi (narrow) | pi.ʑi.za.ˈwi | pi.ʑi.za.ˈwi | |
mapalaway (broad) | ma.pa.la.ˈwaj | ma.pa.la.ˈwaj | |
mapalaway (narrow) | ma.pa.la.ˈwaj | ma.pa.la.ˈwaj | |
watawat (broad) | wa.ta.ˈwat | wa.ta.ˈwat | |
watawat (narrow) | wa.ta.ˈwat | wa.ta.ˈwat | |
tengilen (broad) | tə.ŋi.ˈlən | tə.ŋi.ˈlən | |
tengilen (narrow) | t(ə).ŋi.ˈlən | t(ə).ŋi.ˈlən | |
ngayngay (broad) | ŋaj.ˈŋaj | ŋaj.ˈŋaj | |
ngayngay (narrow) | ŋaj.ˈŋaj | ŋaj.ˈŋaj | |
ebuy (broad) | ə.ˈbuj | ə.ˈbuj | |
ebuy (narrow) | ə.ˈbuj | ə.ˈbuj | |
kalisiw (broad) | ka.li.ˈsiw | ka.li.ˈsiw | |
kalisiw (narrow) | ka.li.ˈɕiw | ka.li.ˈɕiw | |
Bunuk (broad) | bu.ˈnuk | bu.ˈnuk | |
Bunuk (narrow) | bu.ˈnok | bu.ˈnok | |
congtong (broad) | t͡soŋ.ˈtoŋ | t͡soŋ.ˈtoŋ | |
congtong (narrow) | t͡soŋ.ˈtoŋ | t͡soŋ.ˈtoŋ | |
namuh (broad) | na.ˈmuh | na.ˈmuh | |
namuh (narrow) | na.ˈmoh | na.ˈmoh | |
kyo (broad) | kjo | kjo | |
kyo (narrow) | kjo | kjo | |
Ta’on (broad) | ta.ˈʡon | ta.ˈʡon | |
Ta’on (narrow) | ta.ˈʡon | ta.ˈʡon | |
ga-ciw, sawsawni (broad) | ɡa.ˈt͡siw saw.saw.ˈni | ɡa.ˈt͡siw saw.saw.ˈni | |
ga-ciw, sawsawni (narrow) | ɡa.ˈt͡ɕiw saw.saw.ˈni | ɡa.ˈt͡ɕiw saw.saw.ˈni |
local tests = require("Module:UnitTests")
local m_szy_pron = require("Module:szy-pron")
local function tag_IPA(IPA)
return "<span class='IPA'>" .. IPA .. "</span>"
end
local options = { display = tag_IPA }
function tests:check_ipa(text, expected_broad, expected_narrow)
local broad, narrow = m_szy_pron.to_ipa(text)["broad"], m_szy_pron.to_ipa(text)["narrow"]
self:equals(
"[[" .. text .. "#Sakizaya|" .. text .. "]] (broad)",
broad,
expected_broad,
options
)
self:equals(
"[[" .. text .. "#Sakizaya|" .. text .. "]] (narrow)",
narrow,
expected_narrow,
options
)
end
function tests:test_pronunciation()
local examples = {
{ "ina", "i.ˈna", "i.ˈna"},
{ "bau", "ba.ˈu", "ba.ˈu"},
{ "ancila", "an.t͡si.ˈla", "an.t͡ɕi.ˈla"},
{ "katuud", "ka.tu.ˈud", "ka.tu.ˈud"},
{ "bukes", "bu.ˈkəs", "bu.ˈkəs"},
{ "wacu", "wa.ˈt͡su", "wa.ˈt͡su"},
{ "kuskus", "kus.ˈkus", "kus.ˈkus"},
{ "liluc", "li.ˈlut͡s", "li.ˈlut͡s"},
{ "sawsawni", "saw.saw.ˈni", "saw.saw.ˈni"},
{ "hemay", "hə.ˈmaj", "h(ə).ˈmaj"},
{ "pwakih", "pwa.ˈkih", "pwa.ˈkih"},
{ "hakya", "ha.ˈkja", "ha.ˈkja"},
{ "buting", "bu.ˈtiŋ", "bu.ˈtiŋ"},
{ "niyazu’", "ni.ja.ˈzuʡ", "ni.ja.ˈzoʡ"},
{ "adupen", "a.du.ˈpən", "a.du.ˈpən"},
{ "takuwanan", "ta.ku.wa.ˈnan", "ta.ku.wa.ˈnan"},
{ "aku", "a.ˈku", "a.ˈku"},
{ "ama", "a.ˈma", "a.ˈma"},
{ "bihkac", "bih.ˈkat͡s", "bih.ˈkat͡s"},
{ "canan", "t͡sa.ˈnan", "t͡sa.ˈnan"},
{ "cacudadan", "t͡sa.t͡su.da.ˈdan", "t͡sa.t͡su.da.ˈdan"},
{ "ci", "t͡si", "t͡ɕi"},
{ "cuwa", "t͡su.ˈwa", "t͡su.ˈwa"},
{ "edek", "ə.ˈdək", "ə.ˈdək"},
{ "i", "i", "i"},
{ "isu", "i.ˈsu", "i.ˈsu"},
{ "saw", "saw", "saw"},
{ "kuyza", "kuj.ˈza", "kuj.ˈza"},
{ "pizizawi", "pi.zi.za.ˈwi", "pi.ʑi.za.ˈwi"},
{ "mapalaway", "ma.pa.la.ˈwaj", "ma.pa.la.ˈwaj"},
{ "watawat", "wa.ta.ˈwat", "wa.ta.ˈwat"},
{ "tengilen", "tə.ŋi.ˈlən", "t(ə).ŋi.ˈlən"},
{ "ngayngay", "ŋaj.ˈŋaj", "ŋaj.ˈŋaj"},
{ "ebuy", "ə.ˈbuj", "ə.ˈbuj"},
{ "kalisiw", "ka.li.ˈsiw", "ka.li.ˈɕiw"},
{ "Bunuk", "bu.ˈnuk", "bu.ˈnok"},
{ "congtong", "t͡soŋ.ˈtoŋ", "t͡soŋ.ˈtoŋ"},
{ "namuh", "na.ˈmuh", "na.ˈmoh"},
{ "kyo", "kjo", "kjo"},
{ "Ta’on", "ta.ˈʡon", "ta.ˈʡon"},
{ "ga-ciw, sawsawni", "ɡa.ˈt͡siw saw.saw.ˈni", "ɡa.ˈt͡ɕiw saw.saw.ˈni"},
}
self:iterate(examples, "check_ipa")
end
return tests