Module:qlu-pron/testcases: Difference between revisions

No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 10: Line 10:
end
end


function tests:check_output(term, expected, noresp, type)
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, type or "test"),
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", "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"},