Module:kl-pron/testcases
Appearance
- The following documentation is located at Module:kl-pron/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 | |
---|---|---|---|
aarlorpoq | [ɑʶːɬ.ɬɔp.pɔq] | [ɑʶːɬ.ɬɔp.pɔq] | |
aaffaq | [aːf.fɑq] | [aːf.fɑq] | |
ataaseq | [a.təː.sɜq] | [a.təː.sɜq] | |
atsa | [at.t͡sa] | [at.t͡sa] | |
errorpaa | [ɜχ.χɔp.pəː] | [ɜχ.χɔp.pəː] | |
-ersi | [-ɜs.sɪ] | [-ɜs.sɪ] | |
illu | [iɬ.ɬʊ] | [iɬ.ɬʊ] | |
imeq | [y.mɜq] | [y.mɜq] | |
Inutsiaq | [i.nʉt.t͡sɪ.ɑq] | [i.nʉt.t͡sɪ.ɑq] | |
inuuvoq | [i.nʊː.ʷɔq] | [i.nʊː.ʷɔq] | |
ivigaq | [i.vɪ.ɣɑq] | [i.vɪ.ɣɑq] | |
Kiistiina | [kɪːs.t͡sɪː.na] | [kɪːs.t͡sɪː.na] | |
mitiusat | [mɪ.t͡sɪ.ʊ.sət] | [mɪ.t͡sɪ.ʊ.sət] | |
nagga | [nəx̟.x̟a] | [nəx̟.x̟a] | |
-nnger | [-ŋ.ŋɜʁ] | [-ŋ.ŋɜʁ] | |
-nnak | [-n.nək] | [-n.nək] | |
nuarluk | [nʊ.ʷɑɬ.ɬʊk] | [nʊ.ʷɑɬ.ɬʊk] | |
peqqippoq | [pɜq.qyp.pɔq] | [pɜq.qyp.pɔq] | |
qaqortoq | [qɑ.qɔt.tɔq] | [qɑ.qɔt.tɔq] | |
qasilitsut | [qə.sɪ.lɪt.t͡sʉt] | [qə.sɪ.lɪt.t͡sʉt] | |
qimmeq | [qym.mɜq] | [qym.mɜq] | |
qimmiq | [qym.mɐq] | [qym.mɐq] | |
sigguk | [sɪç.çʊk] | [sɪç.çʊk] | |
suliffik | [sʉ.lɪf.fɪk] | [sʉ.lɪf.fɪk] | |
tinuvoq | [t͡sɪ.nʊ.ʷɔq] | [t͡sɪ.nʊ.ʷɔq] | |
ui | [u.ʷɪ] | [u.ʷɪ] |
local tests = require("Module:UnitTests")
local ipa = require("Module:kl-pron")
local link = require("Module:links")
local lang = require("Module:languages").getByCode("kl")
local sc = require("Module:scripts").getByCode("Latn")
local function tag_IPA(IPA)
return '<span class="IPA">[' .. IPA .. ']</span>'
end
function tests:check_output(term, expected)
self:equals(
link.full_link({ term = term, lang = lang, sc = sc } ),
tag_IPA(ipa.phonetic(term)),
tag_IPA(expected)
)
end
function tests:test_phonetic()
examples = {
{ "aarlorpoq", "ɑʶːɬ.ɬɔp.pɔq" },
{ "aaffaq", "aːf.fɑq" },
{ "ataaseq", "a.təː.sɜq" },
{ "atsa", "at.t͡sa" },
{ "errorpaa", "ɜχ.χɔp.pəː" },
{ "-ersi", "-ɜs.sɪ" },
{ "illu", "iɬ.ɬʊ" },
{ "imeq", "y.mɜq" },
{ "Inutsiaq", "i.nʉt.t͡sɪ.ɑq" },
{ "inuuvoq", "i.nʊː.ʷɔq" },
{ "ivigaq", "i.vɪ.ɣɑq" },
{ "Kiistiina", "kɪːs.t͡sɪː.na" },
{ "mitiusat", "mɪ.t͡sɪ.ʊ.sət" },
{ "nagga", "nəx̟.x̟a" },
{ "-nnger", "-ŋ.ŋɜʁ" },
{ "-nnak", "-n.nək" },
{ "nuarluk", "nʊ.ʷɑɬ.ɬʊk" },
{ "peqqippoq", "pɜq.qyp.pɔq" },
{ "qaqortoq", "qɑ.qɔt.tɔq" },
{ "qasilitsut", "qə.sɪ.lɪt.t͡sʉt" },
{ "qimmeq", "qym.mɜq" },
{ "qimmiq", "qym.mɐq" },
{ "sigguk", "sɪç.çʊk" },
{ "suliffik", "sʉ.lɪf.fɪk" },
{ "tinuvoq", "t͡sɪ.nʊ.ʷɔq" },
{ "ui", "u.ʷɪ" }
}
self:iterate(examples, "check_output")
end
return tests