Module:siwa-pron/testcases: Difference between revisions

Jump to navigation Jump to search
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 .. "#Siwa|" .. 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 "[[Contionary:" .. noresp .. "#Siwa|" .. noresp .. "]] (" .. term .. ")" or "[[Contionary:" .. term .. "#Siwa|" .. term .. "]]",
noresp and linkup(noresp) .. "(" .. term .. ")" or linkup(term),
m_IPA.crux(term),
m_IPA.crux(term),
expected,
expected,

Navigation menu