Module:ábḫ-ipa/remake/testcases
< Module:ábḫ-ipa | remake
- The following documentation is located at Module:ábḫ-ipa/remake/testcases/doc. [edit] Categories were auto-generated by Module:documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • sandbox
2 of 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