Module:hil-pron/testcases
Appearance
- The following documentation is located at Module:hil-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 | |
---|---|---|---|
aksiyon | ʔakˈsjon | ʔakˈsjon | |
alambre | ʔaˈlam.bɾe | ʔaˈlam.bɾe | |
aslum | ˈʔas.lum | ˈʔas.lum | |
baboy | ˈba.boɪ̯ | ˈba.boɪ̯ | |
bukid | ˈbu.kid | ˈbu.kid | |
bulan | ˈbu.lan | ˈbu.lan | |
dyaket | ˈdja.ket | ˈdja.ket | |
kongreso | kʊŋˈɡɾe.so | kʊŋˈɡɾe.so | |
tawo | ˈta.wo | ˈta.wo | |
tseke | ˈtse.ke | ˈtse.ke | |
tuo | ˈtu.ʔo | ˈtu.ʔo |
local tests = require("Module:UnitTests")
local m_hil_pron = require("Module:hil-pron")
local function tag_IPA(IPA)
return "<span class='IPA'>" .. IPA .. "</span>"
end
local options = { display = tag_IPA }
function tests:check_phonetic_ipa(text, expected, respelling)
self:equals(
"[[" .. text .. "#Hiligaynon|" .. text .. "]]",
m_hil_pron.IPA(respelling, true),
expected,
{ display = tag_IPA }
)
end
function tests:test_phonetic_pron()
local examples = {
{ "aksiyon","ʔakˈsjon", "aksiyón" },
{ "alambre", "ʔaˈlam.bɾe", "alambre" },
{ "aslum", "ˈʔas.lum", "aslum" },
{ "baboy", "ˈba.boɪ̯", "baboy" },
{ "bukid", "ˈbu.kid", "bukid" },
{ "bulan", "ˈbu.lan", "bulan" },
{ "dyaket", "ˈdja.ket", "dyaket" },
{ "kongreso", "kʊŋˈɡɾe.so", "konggreso"},
{ "tawo", "ˈta.wo", "tawo" },
{ "tseke", "ˈtse.ke", "tseke" },
{ "tuo", "ˈtu.ʔo", "tu7o" },
}
self:iterate(examples, "check_phonetic_ipa")
end
return tests