Module:ceb-pron/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:ceb-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 (diff)
All tests passed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
aksiyon | ʔɐkˈs̪jon̪ | ʔɐkˈs̪jon̪ | |
alambre | ʔɐˈl̪am.bɾ̪e | ʔɐˈl̪am.bɾ̪e | |
baboy | ˈba.boɪ̯ | ˈba.boɪ̯ | |
bukid | ˈbu.kɪd̪ | ˈbu.kɪd̪ | |
bulan | ˈbu.l̪ɐn̪ | ˈbu.l̪ɐn̪ | |
buwan | ˈbu.wɐn̪ | ˈbu.wɐn̪ | |
dyaket | ˈd̪ja.ket̪ | ˈd̪ja.ket̪ | |
inahan | ʔɪˈn̪a.hɐn̪ | ʔɪˈn̪a.hɐn̪ | |
kongreso | koŋˈɡɾ̪i.s̪o | koŋˈɡɾ̪i.s̪o | |
limpiyo | ˈl̪im.pjo | ˈl̪im.pjo | |
ngano | ˈŋa.n̪o | ˈŋa.n̪o | |
peke | ˈpi.keʔ | ˈpi.keʔ | |
tawo | ˈt̪a.wo | ˈt̪a.wo | |
tseke | ˈt̪s̪i.ke | ˈt̪s̪i.ke | |
tuo | ˈt̪u.ʔo | ˈt̪u.ʔo |
local tests = require("Module:UnitTests")
local m_ceb_pron = require("Module:ceb-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 .. "#Cebuano|" .. text .. "]]",
m_ceb_pron.IPA(respelling)["phonetic"],
expected,
{ display = tag_IPA }
)
end
function tests:test_phonetic_pron()
local examples = {
{ "aksiyon","ʔɐkˈs̪jon̪", "aksiyón" },
{ "alambre", "ʔɐˈl̪am.bɾ̪e", "alambre" },
{ "baboy", "ˈba.boɪ̯", "baboy" },
{ "bukid", "ˈbu.kɪd̪", "bukid" },
{ "bulan", "ˈbu.l̪ɐn̪", "bulan" },
{ "buwan", "ˈbu.wɐn̪", "buwan" },
{ "dyaket", "ˈd̪ja.ket̪", "dyaket" },
{ "inahan", "ʔɪˈn̪a.hɐn̪", "inahan"},
{ "kongreso", "koŋˈɡɾ̪i.s̪o", "kon.greso"},
{ "limpiyo", "ˈl̪im.pjo", "limpyo" },
{ "ngano", "ˈŋa.n̪o", "ngano" },
{ "peke", "ˈpi.keʔ", "pekè" },
{ "tawo", "ˈt̪a.wo", "tawo" },
{ "tseke", "ˈt̪s̪i.ke", "tseke" },
{ "tuo", "ˈt̪u.ʔo", "tu7o" },
}
self:iterate(examples, "check_phonetic_ipa")
end
return tests