Module:tl-pron/sandbox/testcases
Appearance
- The following documentation is located at Module:tl-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)
49 of 49 tests failed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
alambre | ʔɐˈlam.bɾe | table | |
asamblea | ʔɐ.sɐmˈble.ɐ | table | |
aso | ˈʔa.so | table | |
atras | ʔɐtˈɾas | table | |
baboy | ˈba.boɪ̯ | table | |
baga | bɐˈɣa | table | |
baka | ˈba.xɐ | table | |
bakante | bɐˈxan.te | table | |
bakla | bɐkˈlaʔ | table | |
banyo | ˈba.ɲo | table | |
banyera | bɐˈɲe.ɾɐ | table | |
Carlos | ˈkxaɾ.los | table | |
Cebu | seˈbu | table | |
Charlie | ˈt͡ʃaɾ.lɪ | table | |
dating | dɐˈtiŋ | table | |
daw | daʊ̯ | table | |
dela Cruz | deˌla ˈkɾus | table | |
digmaan | dɪɡˈma.ʔɐn | table | |
dila | ˈdi.lɐʔ | table | |
diyaryo | ˈd͡ʒaɾ.jo | table | |
Domingo | doˈmiŋ.ɡo | table | |
Fabian | fɐbˈjan | table | |
futbol | ˈfut.bol | table | |
hawla | ˈhaʊ̯.lɐ | table | |
hingal | ˈhi.ŋɐl | table | |
hingal | hɪˈŋal | table | |
kongreso | kxoŋˈɡɾe.so | table | |
kontra | ˈkxon.tɾɐ | table | |
kontrata | kxonˈtɾa.tɐ | table | |
kutsara | kxʊˈt͡ʃa.ɾɐ | table | |
layko | ˈlaɪ̯.xo | table | |
ligalig | lɪˈɣa.lɪɡ | table | |
luto | ˈlu.toʔ | table | |
luto | lʊˈtoʔ | table | |
Niña | ˈni.ɲɐ | table | |
pakla | pɐkˈla | table | |
pinto | pɪnˈtoʔ | table | |
silindro | sɪˈlin.dɾo | table | |
suklay | sʊkˈlaɪ̯ | table | |
tatsulok | tɐ.t͡sʊˈlok | table | |
teka | ˈte.xɐ | table | |
tiyak | ˈt͡ʃak | table | |
transportasyon | tɾɐns.poɾ.tɐˈʃon | table | |
tsiko | ˈt͡ʃi.xo | table | |
ulam | ˈʔu.lɐm | table | |
uminom | ʔʊ.mɪˈnom | table | |
uwak | ʔʊˈak | table | |
yakap | ˈja.xɐp | table | |
zigzag | ˈsiɡ.sɐɡ | table |
local tests = require("Module:UnitTests")
local m_tl_pron = require("Module:tl-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 .. "#Tagalog|" .. text .. "]]",
m_tl_pron.IPA(respelling, true),
expected,
{ display = tag_IPA }
)
end
function tests:test_phonetic_pron()
local examples = {
{ "alambre", "ʔɐˈlam.bɾe", "alambre" },
{ "asamblea", "ʔɐ.sɐmˈble.ɐ", "asamblea" },
{ "aso", "ˈʔa.so", "aso" },
{ "atras", "ʔɐtˈɾas", "atrás" },
{ "baboy","ˈba.boɪ̯", "baboy" },
{ "baga","bɐˈɣa", "bagá" },
{ "baka","ˈba.xɐ", "baka" },
{ "bakante","bɐˈxan.te", "bakante" },
{ "bakla","bɐkˈlaʔ", "baklá7" },
{ "banyo","ˈba.ɲo", "banyo" },
{ "banyera","bɐˈɲe.ɾɐ", "banyera" },
{ "Carlos","ˈkxaɾ.los","Carlos"},
{ "Cebu","seˈbu","Cebú"},
{ "Charlie","ˈt͡ʃaɾ.lɪ", "Charli"},
{ "dating","dɐˈtiŋ", "datíng" },
{ "daw","daʊ̯", "daw" },
{ "dela Cruz", "deˌla ˈkɾus", "delá Cruz" },
{ "digmaan", "dɪɡˈma.ʔɐn", "digma7an" },
{ "dila", "ˈdi.lɐʔ", "dila7" },
{ "diyaryo","ˈd͡ʒaɾ.jo", "diyaryo" },
{ "Domingo", "doˈmiŋ.ɡo", "Domin.go"},
{ "Fabian","fɐbˈjan", "Fabyán" },
{ "futbol", "ˈfut.bol", "futbol" },
{ "hawla","ˈhaʊ̯.lɐ", "hawla" },
{ "hingal","ˈhi.ŋɐl", "hingal" },
{ "hingal","hɪˈŋal", "hingál" },
{ "kongreso", "kxoŋˈɡɾe.so", "kon.greso"},
{ "kontra", "ˈkxon.tɾɐ", "kontra" },
{ "kontrata", "kxonˈtɾa.tɐ", "kontrata" },
{ "kutsara","kxʊˈt͡ʃa.ɾɐ","kutsara"},
{ "layko","ˈlaɪ̯.xo", "layko" },
{ "ligalig","lɪˈɣa.lɪɡ","ligalig"},
{ "luto","ˈlu.toʔ","luto7"},
{ "luto","lʊˈtoʔ","lutó7"},
{ "Niña","ˈni.ɲɐ","Niña"},
{ "pakla","pɐkˈla", "paklá" },
{ "pinto","pɪnˈtoʔ","pintó7"},
{ "silindro", "sɪˈlin.dɾo", "silindro" },
{ "suklay","sʊkˈlaɪ̯", "sukláy" },
{ "tatsulok","tɐ.t͡sʊˈlok","tat.sulók"},
{ "teka","ˈte.xɐ", "teka" },
{ "tiyak","ˈt͡ʃak","tiyák"},
{ "transportasyon", "tɾɐns.poɾ.tɐˈʃon", "transportasyón" },
{ "tsiko","ˈt͡ʃi.xo","tsiko"},
{ "ulam","ˈʔu.lɐm","ulam"},
{ "uminom","ʔʊ.mɪˈnom", "uminóm" },
{ "uwak","ʔʊˈak","uwák"},
{ "yakap", "ˈja.xɐp", "yakap"},
{ "zigzag","ˈsiɡ.sɐɡ", "zigzag" },
}
self:iterate(examples, "check_phonetic_ipa")
end
return tests