Module:anui-pron/testcases: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 4: Line 4:
local function IPA_style(IPA)
local function IPA_style(IPA)
return '<span style="font-size:110%;font-family:Gentium,\'DejaVu Sans\',\'Segoe UI\',sans-serif>' .. IPA .. '</span>'
return '<span style="font-size:110%;font-family:Gentium,\'DejaVu Sans\',\'Segoe UI\',sans-serif>' .. IPA .. '</span>'
end
local function linkup(text)
return "[[Contionary:" .. text .. "|" .. text .. "]]"
end
end


function tests:check_output(term, expected)
function tests:check_output(term, expected)
return tests:equals(
return tests:equals(
linkup(term),
term,
m_IPA.crux(term),
m_IPA.crux(term),
expected,
expected,