Module:kxv-IPA/testcases
Appearance
- The following documentation is located at Module:kxv-IPA/testcases/documentation. [edit] Categories were auto-generated by Module:module categorization. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • sandbox
All tests passed. (refresh)
Text | Expected | Actual | Comments | |
---|---|---|---|---|
ମ୍ରା୕ନୁ (mrānu) | mɾaːn̪u | mɾaːn̪u | ||
କେଟ (keṭo) | keʈo | keʈo |
local tests = require("Module:UnitTests")
local m_IPA = require("Module:kxv-IPA")
local function tag_IPA(IPA)
return '<span class="IPA">' .. IPA .. '</span>'
end
function tests:check_output(term, expected, comment)
self:equals(
m_IPA.link(term),
tag_IPA(m_IPA.to_IPA(term)[1]),
tag_IPA(expected),
{ comment = comment }
)
end
function tests:test_all()
examples = {
{ "ମ୍ରା୕ନୁ", "mɾaːn̪u", ""},
{ "କେଟ", "keʈo", ""},
}
--[[ Copy the following to add more examples:
{ "", "" },
]]
tests:iterate(examples, "check_output")
end
return tests