Module:User:Malku H₂n̥rés/lang-IPA/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:User:Malku H₂n̥rés/lang-IPA/testcases/documentation. [edit] Categories were auto-generated by Module:documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • user page • user talk page • userspace
2 of 2 tests failed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
![]() | start | pronunciation | start | 1 |
![]() | word | ˈend | word | 1 |
local tests = require("Module:UnitTests")
local m_IPA = require("Module:User:Malku H₂n̥rés/lang-IPA")
local lang = require("Module:languages").getByCode("akk")
local function tag_IPA(IPA) return '<span class="IPA">' .. IPA .. '</span>' end
local options = {display = tag_IPA}
function tests:check_pron(word, expected)
self:equals(
require("Module:links").full_link({term = word, lang = lang}, nil, true), m_IPA.pronunciation_phonemic(word), expected, options
)
end
function tests:test_pron()
local examples = {
{"start", "pronunciation"},
{"word", "ˈend"}
}
tests:iterate(examples, "check_pron")
end
return tests