Module:qhv-pron/testcases: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 7: Line 7:


local function linkup(text, noresp)
local function linkup(text, noresp)
return "[[Contionary:" .. 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,
Line 33: Line 33:
{"valonqar", "vaˈloɴqar"},
{"valonqar", "vaˈloɴqar"},
{"Thoros", "ˈθoɾos"},
{"Thoros", "ˈθoɾos"},
{"arákh", "aˈɾax", "arakh"},
{"arákh", "aˈɾáx", "arakh"},
{"ēngos", "ˈeːŋɡos"},
{"ēngos", "ˈeːŋɡos"},
{"amīvindigon", "amiːˈvindiɡon"},
{"amīvindigon", "amiːˈvindiɡon"},
Line 51: Line 51:
{"vōljes", "ˈwoːʎes"},
{"vōljes", "ˈwoːʎes"},
{"vumbiarzy", "wumˈbi͜arzy"},
{"vumbiarzy", "wumˈbi͜arzy"},
{"vȳs", "ˈɥyːs"},
{"vȳs", "ɥyːs"},
{"ȳgha", "ˈyːɣa"},
{"ȳgha", "ˈyːɣa"},
{"vajie", "ˈɥaɟi͜e"},
{"vajie", "ˈɥaɟi͜e"},