Module:qlu-pron/testcases: Difference between revisions
No edit summary |
No edit summary |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 10: | Line 10: | ||
end | end | ||
function tests:check_output(term, expected, noresp, | function tests:check_output(term, expected, noresp, transcription) | ||
return tests:equals( | return tests:equals( | ||
noresp == "" and linkup(term) or noresp and linkup(noresp) .. "<br>(" .. term .. ")" or linkup(term), | noresp == "" and linkup(term) or noresp and linkup(noresp) .. "<br>(" .. term .. ")" or linkup(term), | ||
m_IPA.crux(term, | m_IPA.crux(term, nil, transcription or "test"), | ||
expected, | expected, | ||
{ display = IPA_style, show_difference = true } | { display = IPA_style, show_difference = true } | ||
| Line 42: | Line 42: | ||
{"caza", "ˈka.zɐ", "casa", "phonemic"}, | {"caza", "ˈka.zɐ", "casa", "phonemic"}, | ||
{"crâemize", "ˈkrɛ.mi.ze", "cremise", "phonemic"}, | {"crâemize", "ˈkrɛ.mi.ze", "cremise", "phonemic"}, | ||
{" | {"bróþar-scape", "ˌbro.θɐrˈska.ɸe", "broþarscape", "phonetic"}, | ||
{"ăeggüale", "ɛɡˈɡʷa.le", "aegguale", "phonemic"}, | {"ăeggüale", "ɛɡˈɡʷa.le", "aegguale", "phonemic"}, | ||
{"spaechio", "ˈspɛ.kjo", "spechio", "phonemic"}, | {"spaechio", "ˈspɛ.kjo", "spechio", "phonemic"}, | ||
| Line 49: | Line 49: | ||
{"lamna", "ˈlam.nɐ", "", "phonemic"}, | {"lamna", "ˈlam.nɐ", "", "phonemic"}, | ||
{"augno", "ˈɔɲ.ɲo", "", "phonemic"}, | {"augno", "ˈɔɲ.ɲo", "", "phonemic"}, | ||
{" | {"compagnïa", "kom.pɐɲˈɲi.ɐ", "compagnia", "phonemic"}, | ||
{"emme", "ˈẽ.me", "", "phonemic"}, | |||
--[[{"", ""}, | --[[{"", ""}, | ||
{"", ""}, | {"", ""}, | ||