Module:ábḫ-ipa/remake/testcases
< Module:ábḫ-ipa | remake
2 tests failed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
zaḫáza | θ̱ɐˈxä˦.θ̱ɐ | θä-xä˦-θä | |
áken | ˈä˦.kɛn̪ | ä˦-ken |
local tests = require('Module:UnitTests')
local m_IPA = require('Module:ábḫ-ipa/remake')
local function IPA_style(IPA)
return '<span style="font-size:110%;font-family:Gentium,\'DejaVu Sans\',\'Segoe UI\',sans-serif>' .. IPA .. '</span>'
end
local function linkup(text)
return "[[Contionary:" .. text .. "#Ábḫanni|" .. text .. "]]"
end
function tests:check_output(term, expected, noresp)
return tests:equals(
linkup(term),
m_IPA.show(term),
expected,
{ display = IPA_style }
)
end
function tests:test_example()
local list = {
{"zaḫáza", "θ̱ɐˈxä˦.θ̱ɐ"},
{"áken", "ˈä˦.kɛn̪"},
--[[{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},]]
}
self:iterate(list, "check_output")
end
return tests