Module:ceb-pron/sandbox/testcases
Appearance
- The following documentation is located at Module:ceb-pron/sandbox/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 of (diff)
All tests passed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
aksiyon | ʔʌkˈs̪jon̪ | ʔʌkˈs̪jon̪ | |
alambre | ʔʌˈl̪am.bɾ̪ɪ | ʔʌˈl̪am.bɾ̪ɪ | |
baboy | ˈba.boɪ̯ | ˈba.boɪ̯ | |
bukid | ˈbu.kɪd̪ | ˈbu.kɪd̪ | |
bulan | ˈbu.l̪ʌn̪ | ˈbu.l̪ʌn̪ | |
buwan | ˈbu.ʌn̪ | ˈbu.ʌn̪ | |
dyaket | ˈd̪ja.kɪt̪ | ˈd̪ja.kɪt̪ | |
inahan | ʔɪˈn̪a.hʌn̪ | ʔɪˈn̪a.hʌn̪ | |
kongreso | kɔŋˈɡɾ̪i.s̪ɔ | kɔŋˈɡɾ̪i.s̪ɔ | |
limpiyo | ˈl̪im.pjɔ | ˈl̪im.pjɔ | |
ngano | ˈŋa.n̪ɔ | ˈŋa.n̪ɔ | |
peke | ˈpi.kɪʔ | ˈpi.kɪʔ | |
tawo | ˈt̪aw | ˈt̪aw | |
tseke | ˈt̪s̪i.kɪ | ˈt̪s̪i.kɪ | |
tuo | ˈt̪u.ʔɔ | ˈt̪u.ʔɔ |
local tests = require("Module:UnitTests")
local m_ceb_pron = require("Module:ceb-pron/sandbox")
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ɾ̪ɪ", "alambre" },
{ "baboy", "ˈba.boɪ̯", "baboy" },
{ "bukid", "ˈbu.kɪd̪", "bukid" },
{ "bulan", "ˈbu.l̪ʌn̪", "bulan" },
{ "buwan", "ˈbu.ʌn̪", "buwan" },
{ "dyaket", "ˈd̪ja.kɪt̪", "dyaket" },
{ "inahan", "ʔɪˈn̪a.hʌn̪", "inahan"},
{ "kongreso", "kɔŋˈɡɾ̪i.s̪ɔ", "kon.greso"},
{ "limpiyo", "ˈl̪im.pjɔ", "limpyo" },
{ "ngano", "ˈŋa.n̪ɔ", "ngano" },
{ "peke", "ˈpi.kɪʔ", "pekè" },
{ "tawo", "ˈt̪aw", "tawo" },
{ "tseke", "ˈt̪s̪i.kɪ", "tseke" },
{ "tuo", "ˈt̪u.ʔɔ", "tu7o" },
}
self:iterate(examples, "check_phonetic_ipa")
end
return tests