Module:siwa-pron/testcases: Difference between revisions

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


local function linkup(text)
local function linkup(text)
if not gmatch(text, "·") and gmatch(text, "%u") then
text=text
else text=mw.ustring.lower(text) end
return "[[Contionary:" .. text .. "#Siwa|" .. text .. "]]"
return "[[Contionary:" .. text .. "#Siwa|" .. text .. "]]"
end
end
Line 12: Line 15:
function tests:check_output(term, expected, noresp)
function tests:check_output(term, expected, noresp)
return tests:equals(
return tests:equals(
linkup(mw.ustring.gsub(mw.ustring.lower(term),"·","")),
linkup(term),
m_IPA.crux(term),
m_IPA.crux(term),
expected,
expected,