45,646
edits
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
end | end | ||
function tests:check_output(term, expected | 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 | { 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ː˧ | {"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", "ṵː˨", | {"ùu", "ṵː˨"}, -- false negative | ||
{"um", "m̩ː˥˦"}, | {"um", "m̩ː˥˦"}, | ||
{"ṵm", "m̰̍ː˧"}, | {"ṵm", "m̰̍ː˧"}, |