Module:qhv-pron/testcases: Difference between revisions
No edit summary |
No edit summary |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
end | end | ||
local function linkup(text) | local function linkup(text, noresp) | ||
return "[[Contionary:" .. text .. "#High Valyrian|" .. text .. "]]" | return "[[Contionary:" .. text .. "#High Valyrian|" .. text .. "]]" | ||
end | end | ||
function tests:check_output(term, expected) | function tests:check_output(term, expected, noresp) | ||
return tests:equals( | return tests:equals( | ||
linkup(term), | noresp and linkup(noresp) .. "<br>(" .. term .. ")" or linkup(term), | ||
m_IPA.crux(term), | m_IPA.crux(term), | ||
expected, | expected, | ||
| Line 30: | Line 30: | ||
function tests:test_modern() | function tests:test_modern() | ||
local list = { | local list = { | ||
{"drakarys", " | {"drakarys", "draˈkaɾys"}, | ||
{"valonqar", " | {"valonqar", "vaˈloɴqar"}, | ||
{"Thoros", " | {"Thoros", "ˈθoɾos"}, | ||
{" | {"arákh", "aˈɾáx", "arakh"}, | ||
{"ēngos", " | {"ēngos", "ˈeːŋɡos"}, | ||
{"amīvindigon", " | {"amīvindigon", "amiːˈvindiɡon"}, | ||
{"ojehiknon", " | {"ojehiknon", "ojeˈhiknon"}, | ||
{"pōja", " | {"pōja", "ˈpoːja"}, | ||
{"riña", " | {"riña", "ˈriɲa"}, | ||
{"zirȳla", " | {"zirȳla", "ziˈɾyːla"}, | ||
{"ipradis", " | {"ipradis", "iˈpradis"}, | ||
{"rholagon", "ṛoˈlaɡon"}, | |||
} | } | ||
self:iterate(list, "check_output") | self:iterate(list, "check_output") | ||
| Line 47: | Line 48: | ||
function tests:test_antique() | function tests:test_antique() | ||
local list = { | local list = { | ||
{"vējōñe", " | {"vējōñe", "veːˈjoːɲe"}, | ||
{"vōljes", " | {"vōljes", "ˈwoːʎes"}, | ||
{"vumbiarzy", " | {"vumbiarzy", "wumˈbi͜arzy"}, | ||
{"vȳs", " | {"vȳs", "ɥyːs"}, | ||
{"ȳgha", " | {"ȳgha", "ˈyːɣa"}, | ||
{"vajie", " | {"vajie", "ˈɥaɟi͜e"}, | ||
{"vūjigon", " | {"vūjigon", "ˈwuːɟiɡon"}, | ||
{"qrillaodikio", " | {"qrillaodikio", "qrilˈlao̯diki͜o"}, | ||
} | } | ||
self:iterate(list, "check_output2") | self:iterate(list, "check_output2") | ||