Module:qhv-pron/testcases: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 14: Line 14:
linkup(term),
linkup(term),
m_IPA.crux(term),
m_IPA.crux(term),
expected,
{ display = IPA_style }
)
end
function tests:check_output(term, expected)
return tests:equals(
linkup(term),
m_IPA.antique_crux(term),
expected,
expected,
{ display = IPA_style }
{ display = IPA_style }
Line 33: Line 42:
}
}
self:iterate(list, "check_output")
self:iterate(list, "check_output")
end
function tests:test_modern()
local list = {
{"drakaɾys", "draˈkarys"},
{"valonqar", "vaˈloɴqar"},
{"Thoros", "ˈθoɾos"},
{"aɾakh", "aˈɾax"},
{"ēngos", "ˈeːŋɡos"},
{"amīvindigon", "amiːˈvindiɡon"},
{"ojehiknon", "ojeˈhiknon"},
{"pōja", "ˈpoːja"},
{"riña", "ˈriɲa"},
{"ziɾȳla", "ziˈryːla"},
}
self:iterate(list, "check_output2")
end
end


return tests
return tests

Navigation menu