Module:ky-IPA/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:ky-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 | |
---|---|---|---|
таене | tɑjene | tɑjene | |
Енисей | jenisej | jenisej | |
кыргыз | qɯrʁɯz | qɯrʁɯz |
local tests = require("Module:UnitTests")
local m_ky_ipa = require("Module:ky-IPA")
function tests:check_phonetic(word, expected, respelling)
self:equals(
"[[" .. word .. "#Kyrgyz|" .. word .. "]]",
m_ky_ipa.phonetic(respelling or word),
expected,
{ display = tag_IPA }
)
end
function tests:test_pron()
local examples = {
{ "таене", "tɑjene" },
{ "Енисей", "jenisej" },
{ "кыргыз", "qɯrʁɯz" },
}
self:iterate(examples, "check_phonetic")
end
return tests