Module:pag-pron/testcases
Appearance
- The following documentation is located at Module:pag-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)
1 of 12 tests failed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
agew | aˈɡɨʊ̯ | aˈɡɨʊ̯ | |
baley | baˈlɨɪ̯ | baˈlɨɪ̯ | |
bituen | bɪˈtwɨn | bɪˈtwɨn | |
Camiling | ka.mɪˈlɪŋ | ka.mɪˈlɪŋ | |
Cariño | kaˈɾɪ.njo | kaˈɾɪ.njo | |
Dios | ˈd͡ʒʊs | ˈd͡ʒʊs | |
Estados Unidos | ɪsˌta.dʊs ʊˈni.dʊs | ɪsˌta.dʊs ʊˈnɪ.dʊs | |
estasion | ɪs.taˈʃʊn | ɪs.taˈʃʊn | |
inom | ɪˈnʊm | ɪˈnʊm | |
say | saɪ̯ | saɪ̯ | |
wawak | waˈwak | waˈwak | |
yabyab | jabˈjab | jabˈjab |
local tests = require("Module:UnitTests")
local m_pag_pron = require("Module:pag-pron")
local function pag_IPA(IPA)
return "<span class='IPA'>" .. IPA .. "</span>"
end
function tests:check_phonetic_ipa(word, expected, respelling)
self:equals(
"[[" .. word .. "#Pangasinan|" .. word .. "]]",
m_pag_pron.IPA(respelling, true),
expected,
{ display = tag_IPA }
)
end
function tests:test_phonetic_pron()
local examples = {
{ "agew","aˈɡɨʊ̯","agë́w" },
{ "baley","baˈlɨɪ̯", "balë́y" },
{ "bituen","bɪˈtwɨn", "bituë́n" },
{ "Camiling","ka.mɪˈlɪŋ", "Camilíng" },
{ "Cariño","kaˈɾɪ.njo", "Cariño" },
{ "Dios","ˈd͡ʒʊs", "Dios" },
{ "Estados Unidos","ɪsˌta.dʊs ʊˈni.dʊs", "estados unidos" },
{ "estasion","ɪs.taˈʃʊn", "istasión"},
{ "inom","ɪˈnʊm", "inóm"},
{ "say","saɪ̯", "say"},
{ "wawak","waˈwak", "wawák"},
{ "yabyab", "jabˈjab", "yabyáb"},
}
self:iterate(examples, "check_phonetic_ipa")
end
return tests