Module:qlu-pron/testcases: Difference between revisions
No edit summary |
No edit summary |
||
| (3 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 } | ||