Module:qlu-pron/testcases: Difference between revisions

No edit summary
No edit summary
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, transcription or "test"),
expected,
expected,
{ display = IPA_style, show_difference = true }
{ display = IPA_style, show_difference = true }