Module:User:TagaSanPedroAko/pag-pron/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:User:TagaSanPedroAko/pag-pron/testcases/documentation. [edit] Categories were auto-generated by Module:documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • user page • user talk page • userspace
10 of 11 tests failed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
![]() | agew | aˈgɨʊ̯ | aɡɨ́ʊ |
![]() | baley | baˈlɨ | balɨ́ɪ |
![]() | 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:User:TagaSanPedroAko/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ˈ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