Module:qlu-pron/testcases: Difference between revisions

No edit summary
No edit summary
Line 12: Line 12:
function tests:check_output(term, expected, noresp, type)
function tests:check_output(term, expected, noresp, type)
return tests:equals(
return tests:equals(
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, type or "test"),
expected,
expected,