Module:qhv-pron/testcases: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 7: Line 7:


local function linkup(text, noresp)
local function linkup(text, noresp)
return "[[Contionary:" .. noresp ~= nil and noresp or text .. "#High Valyrian|" .. text .. "]]"
return "[[Contionary:" .. text .. "#High Valyrian|" .. text .. "]]"
end
end


function tests:check_output(term, expected, noresp)
function tests:check_output(term, expected, noresp)
return tests:equals(
return tests:equals(
noresp and linkup(term, noresp) or linkup(term),
noresp and linkup(noresp) .. "<br>(" .. term .. ")" or linkup(term),
m_IPA.crux(term),
m_IPA.crux(term),
expected,
expected,