Module:siwa-pron/testcases: Difference between revisions
Jump to navigation
Jump to search
6 tests failed. (refresh)
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
return tests:equals( | return tests:equals( | ||
"[[Contionary:" .. term .. "#Siwa|" .. term .. "]]", | "[[Contionary:" .. term .. "#Siwa|" .. term .. "]]", | ||
m_IPA. | m_IPA.crux(term), | ||
expected, | expected, | ||
{ display = IPA_style } | { display = IPA_style } | ||
Line 46: | Line 46: | ||
{"uįokỏesġen", "ˌujɔˈkʰʊːɛsxɛn"}, | {"uįokỏesġen", "ˌujɔˈkʰʊːɛsxɛn"}, | ||
{"hait", "ˈhaɪʔɪ"}, | {"hait", "ˈhaɪʔɪ"}, | ||
--[[{"", ""}, | |||
{"", ""}, | {"", ""}, | ||
{"", ""}, | {"", ""}, | ||
Line 66: | Line 67: | ||
{"", ""}, | {"", ""}, | ||
{"", ""}, | {"", ""}, | ||
{"", ""}, | {"", ""},]] | ||
} | } | ||
self:iterate(list, "check_output") | self:iterate(list, "check_output") |
Revision as of 16:30, 1 January 2021
- The following documentation is located at Module:siwa-pron/testcases/doc.[edit]
- Useful links: root page • root page's subpages • links • transclusions • testcases • sandbox
6 tests failed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
kigįni | ˈcʰijːini | ˈcʰijːni | |
gedli | ˈɟetɬi | ˈɟetɬi | |
poaṡṡi | ˈpʰɔɑɕːi | ˈpʰɔɑɕːi | |
katsa | ˈkʰɑtsa | ˈ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 | ˈtsxiɑ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 | |
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 | ˌujɔˈkʰʊːɛsxɛn | ˈujɔɡʊːɛsxɛn | |
hait | ˈhaɪʔɪ | ˈhaɪt͡ɕ |
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
function tests:check_output(term, expected)
return tests:equals(
"[[Contionary:" .. term .. "#Siwa|" .. term .. "]]",
m_IPA.crux(term),
expected,
{ display = IPA_style }
)
end
function tests:test_example()
local list = {
{"kigįni", "ˈcʰijːini"},
{"gedli", "ˈɟetɬi"},
{"poaṡṡi", "ˈpʰɔɑɕːi"},
{"katsa", "ˈkʰɑtsa"},
{"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", "ˈtsxiɑuɣa"},
{"huoibmui", "ˈhʊɔɪʔp̚mui"},
{"mamma", "ˈmɑmːa"},
{"hįůdįa", "ˈhjød͡ʑa"},
{"tỏ", "ˈtʰʊː"},
{"gįosin", "ˈɟɔsɪn"},
{"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įokỏesġen", "ˌujɔˈkʰʊːɛsxɛn"},
{"hait", "ˈhaɪʔɪ"},
--[[{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},]]
}
self:iterate(list, "check_output")
end
return tests