Module:siwa-pron/testcases
Jump to navigation
Jump to search
2 tests failed. (refresh)
- The following documentation is located at Module:siwa-pron/testcases/doc.[edit]
- Useful links: root page • root page's subpages • links • transclusions • testcases • sandbox
2 tests failed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
kigįini | ˈcʰijːini | ˈcʰijːini | |
gedli | ˈɟetɬi | ˈɟetɬi | |
poaṡṡi | ˈpʰɔɑɕːi | ˈpʰɔɑɕːi | |
katsa | ˈkʰɑt͡sa | ˈkʰɑt͡sa | |
dảdna | ˈdæːʔt̚na | ˈdæːʔt̚na | |
dảnaka | ˈdæːnɑɡa | ˈdæːnɑɡa | |
kęmes | ˈcʰæmɛs | ˈcʰæmɛs | |
pilra | ˈpʰɪlra | ˈpʰɪlra | |
tygi | ˈtʰyɟi | ˈtʰyɟi | |
ymni | ˈœmnːi | ˈœmnːi | |
tsġiauga | ˈt͡sxiɑuɣa | ˈt͡sxiɑuɣa | |
huoibmui | ˈhʊɔɪʔp̚mui | ˈhʊɔɪʔp̚mui | |
mamma | ˈmɑmːa | ˈmɑmːa | |
hįůdįa | ˈhjød͡ʑa | ˈhjød͡ʑa | |
tỏ | ˈtʰʊː | ˈtʰʊː | |
gįosin | ˈɟɔsɪn | ˈɟɔsɪn | |
gįegįi | ˈd͡zejːi | ˈd͡zejːi | |
kika | ˈcʰika | ˈcʰika | |
tsepu | ˈt͡sepu | ˈt͡sepu | |
huhhi | ˈhuhːi | ˈhuhːi | |
tůppů | ˈtʰœʔpø | ˈtʰœʔpø | |
sauṡpỉdna | ˈsaʊɕpiːʔt̚na | ˈsaʊɕpiːʔt̚na | |
voakna | ˈvɔaʔk̚ŋa | ˈvɔaʔk̚ŋa | |
toḥḥami | ˈtʰɔʔːɑmi | ˈtʰɔʔːɑmi | |
oddo | ˈɔtːɔ | ˈɔtːɔ | |
niḍgi | ˈnɪðɟi | ˈnɪðɟi | |
nedġi | ˈnɛðxi | ˈnɛðxi | |
Teltsġvi | ˈtʰɛɬt͡sxwi | ˈtʰɛɬt͡sxwi | |
uįokỏesġen (uįo·kỏesġen) |
ˌujɔˈk⁽ʰ⁾ʊːɛsxɛn | ˌujɔˈk⁽ʰ⁾ʊːɛsxɛn | |
hait | ˈhaɪʔɪ | ˈhaɪt͡ɕ | |
siaun | ˈsɪaʊn | ˈsɪaʊn | |
vihi | ˈviʔi | ˈviʔi | |
ipro | ˈɪpxɔ | ˈɪpxɔ | |
ỉtsta | ˈiːt͡stːa | ˈiːt͡stːa | |
tṡemkka | ˈt͡sɛmkːa | ˈt͡ɕɛmkːa |
local tests = require('Module:UnitTests')
local m_IPA = require('Module:siwa-pron')
local function IPA_style(IPA)
return '<span style="font-size:110%;font-family:Gentium,\'DejaVu Sans\',\'Segoe UI\',sans-serif>' .. IPA .. '</span>'
end
local function linkup(text)
return "[[Contionary:" .. text .. "#Siwa|" .. text .. "]]"
end
function tests:check_output(term, expected, noresp)
return tests:equals(
noresp and linkup(noresp) .. "<br>(" .. term .. ")" or linkup(term),
m_IPA.crux(term),
expected,
{ display = IPA_style }
)
end
function tests:test_example()
local list = {
{"kigįini", "ˈcʰijːini"},
{"gedli", "ˈɟetɬi"},
{"poaṡṡi", "ˈpʰɔɑɕːi"},
{"katsa", "ˈkʰɑt͡sa"},
{"dảdna", "ˈdæːʔt̚na"},
{"dảnaka", "ˈdæːnɑɡa"},
{"kęmes", "ˈcʰæmɛs"},
{"pilra", "ˈpʰɪlra"},
{"tygi", "ˈtʰyɟi"},
{"ymni", "ˈœmnːi"},
{"tsġiauga", "ˈt͡sxiɑuɣa"},
{"huoibmui", "ˈhʊɔɪʔp̚mui"},
{"mamma", "ˈmɑmːa"},
{"hįůdįa", "ˈhjød͡ʑa"},
{"tỏ", "ˈtʰʊː"},
{"gįosin", "ˈɟɔsɪn"},
{"gįegįi", "ˈd͡zejːi"},
{"kika", "ˈcʰika"},
{"tsepu", "ˈt͡sepu"},
{"huhhi", "ˈhuhːi"},
{"tůppů", "ˈtʰœʔpø"},
{"sauṡpỉdna", "ˈsaʊɕpiːʔt̚na"},
{"voakna", "ˈvɔaʔk̚ŋa"},
{"toḥḥami", "ˈtʰɔʔːɑmi"},
{"oddo", "ˈɔtːɔ"},
{"niḍgi", "ˈnɪðɟi"},
{"nedġi", "ˈnɛðxi"},
{"Teltsġvi", "ˈtʰɛɬt͡sxwi"},
{"uįo·kỏesġen", "ˌujɔˈk⁽ʰ⁾ʊːɛsxɛn", "uįokỏesġen"},
{"hait", "ˈhaɪʔɪ"},
{"siaun", "ˈsɪaʊn"}, --made-up word to test triphthongs in the form -C#
{"vihi", "ˈviʔi"},
{"ipro", "ˈɪpxɔ"},
{"ỉtsta", "ˈiːt͡stːa"},
{"tṡemkka", "ˈt͡sɛmkːa"},
--[[{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},]]
}
self:iterate(list, "check_output")
end
return tests