Module:pag-pron/sandbox/testcases
Appearance
- The following documentation is located at Module:pag-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)
10 of 11 tests failed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
agew | aˈgɨʊ̯ | 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 | |
inom | iˈnʊm | ɪ.nʊ́m | |
say | saɪ̯ | saŷ | |
wawak | waˈwak | wa.wák | |
yabyab | jabˈjab | jab.jáb |
local tests = require("Module:UnitTests")
local m_pag_pron = require("Module:pag-pron/sandbox")
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ˈgɨʊ̯","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" },
{ "inom","iˈ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