Module:anui-pron/testcases: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 10: Line 10:
end
end


function tests:check_output(term, expected, comment)
function tests:check_output(term, expected)
return tests:equals(
return tests:equals(
bold(term),
bold(term),
m_IPA.crux(term),
m_IPA.crux(term),
expected,
expected,
{ display = IPA_style, show_difference = true, comment = comment}
{ display = IPA_style, show_difference = true}
)
)
end
end
Line 21: Line 21:
function tests:test_example()
function tests:test_example()
local list = {
local list = {
{"aa", "aː˧", "LJKNASKJNKAJSNDFKJN"},
{"aa", "aː˧"},
{"aã", "ãː˥˦"},
{"aã", "ãː˥˦"},
{"a̰a", "a̰ː˦"},
{"a̰a", "a̰ː˦"},
Line 27: Line 27:
{"a̰ʼa", "a̰ʔa˦"},
{"a̰ʼa", "a̰ʔa˦"},
{"a̰ʼã", "ã̰ʔã˥˦"},
{"a̰ʼã", "ã̰ʔã˥˦"},
{"ùu", "ṵː˨", "false negative"},
{"ùu", "ṵː˨"}, -- false negative
{"um", "m̩ː˥˦"},
{"um", "m̩ː˥˦"},
{"ṵm", "m̰̍ː˧"},
{"ṵm", "m̰̍ː˧"},