Module:cs-pronunciation/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:cs-pronunciation/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 | |
---|---|---|---|
hrň | ˈɦr̩ɲ | ˈɦr̩ɲ | |
v rukávě | ˈvrukaːvjɛ | ˈvrukaːvjɛ | |
denní | ˈdɛɲiː | ˈdɛɲiː | |
chladný jako led | xladniː jako lɛt | xladniː jako lɛt | |
gřece (k řece) | ˈɡr̝ɛt͡sɛ | ˈɡr̝ɛt͡sɛ | |
v okně | ˈfʔokɲɛ | ˈfʔokɲɛ | |
ne?obyčejný (neobyčejný) | ˈnɛʔobɪt͡ʃɛjniː | ˈnɛʔobɪt͡ʃɛjniː | |
mimo?olomoucký (mimoolomoucký) | ˈmɪmoʔolomou̯t͡skiː | ˈmɪmoʔolomou̯t͡skiː | |
vzkvět | ˈfskvjɛt | ˈfskvjɛt | |
rtuť | ˈrtuc | ˈrtuc | |
lpí | ˈlpiː | ˈlpiː | |
msta | ˈmsta | ˈmsta | |
sedum (sedm) | ˈsɛdum | ˈsɛdum | |
sedm | ˈsɛdm̩ | ˈsɛdm̩ | |
osm | ˈosm̩ | ˈosm̩ | |
srdce | ˈsr̩t͡sɛ | ˈsr̩t͡sɛ | |
nashledanou (na shledanou) | ˈnazɦlɛdanou̯ | ˈnazɦlɛdanou̯ | |
naschledanou (na shledanou) | ˈnasxlɛdanou̯ | ˈnasxlɛdanou̯ | |
fašismus | ˈfaʃɪzmus | ˈfaʃɪzmus | |
zmrzlina | ˈzmr̩zlɪna | ˈzmr̩zlɪna | |
antyhrdina (antihrdina) | ˈantɪɦr̩ɟɪna | ˈantɪɦr̩ɟɪna | |
identyfikovat (identifikovat) | ˈɪdɛntɪfɪkovat | ˈɪdɛntɪfɪkovat | |
banka | ˈbaŋka | ˈbaŋka | |
měkký | ˈmɲɛkiː | ˈmɲɛkiː | |
břich | ˈbr̝ɪx | ˈbr̝ɪx | |
dřeň | ˈdr̝ɛɲ | ˈdr̝ɛɲ | |
hřích | ˈɦr̝iːx | ˈɦr̝iːx | |
chřest | ˈxr̝̊ɛst | ˈxr̝̊ɛst | |
křen | ˈkr̝̊ɛn | ˈkr̝̊ɛn | |
mříž | ˈmr̝iːʃ | ˈmr̝iːʃ | |
přes | ˈpr̝̊ɛs | ˈpr̝̊ɛs | |
tři | ˈtr̝̊ɪ | ˈtr̝̊ɪ | |
vřes | ˈvr̝ɛs | ˈvr̝ɛs | |
zřít | ˈzr̝iːt | ˈzr̝iːt | |
dvířka | ˈdviːr̝̊ka | ˈdviːr̝̊ka | |
kouř | ˈkou̯r̝̊ | ˈkou̯r̝̊ | |
těžký | ˈcɛʃkiː | ˈcɛʃkiː | |
stín | ˈsciːn | ˈsciːn | |
děs | ˈɟɛs | ˈɟɛs | |
vně | ˈvɲɛ | ˈvɲɛ | |
knír | ˈkɲiːr | ˈkɲiːr | |
hřbet | ˈɦr̝bɛt | ˈɦr̝bɛt | |
zmrznout | ˈzmr̩znou̯t | ˈzmr̩znou̯t | |
vrh | ˈvr̩x | ˈvr̩x | |
vrch | ˈvr̩x | ˈvr̩x | |
vlk | ˈvl̩k | ˈvl̩k | |
hrb | ˈɦr̩p | ˈɦr̩p | |
hod | ˈɦot | ˈɦot | |
tah | ˈtax | ˈtax | |
dav | ˈdaf | ˈdaf | |
fez | ˈfɛs | ˈfɛs | |
muž | ˈmuʃ | ˈmuʃ | |
zpívat | ˈspiːvat | ˈspiːvat | |
boršč | ˈborʃt͡ʃ | ˈborʃt͡ʃ | |
exoforie | ˈɛɡzoforɪjɛ | ˈɛɡzoforɪjɛ | |
ion | ˈjon | ˈjon |
local tests = require('Module:UnitTests')
local m_IPA = require('Module:cs-pronunciation')
local function tag_IPA(IPA)
return '<span class="IPA">' .. IPA .. '</span>'
end
function tests:check_output(term, expected, link)
return self:equals(
link and m_IPA.tag_text(term) .. " (" .. m_IPA.link(link) .. ")" or m_IPA.link(term),
m_IPA.toIPA(term),
expected,
{ display = tag_IPA }
)
end
function tests:test_all()
local list = {
{ "hrň", "ˈɦr̩ɲ" },
{ "v rukávě", "ˈvrukaːvjɛ" },
{ "denní", "ˈdɛɲiː" },
{ "chladný jako led", "xladniː jako lɛt" },
{ "gřece", "ˈɡr̝ɛt͡sɛ", "k řece" },
{ 'v okně', "ˈfʔokɲɛ" },
{ "ne?obyčejný", "ˈnɛʔobɪt͡ʃɛjniː", "neobyčejný" },
{ "mimo?olomoucký", "ˈmɪmoʔolomou̯t͡skiː", "mimoolomoucký" },
{ "vzkvět", "ˈfskvjɛt" },
{ "rtuť", "ˈrtuc" },
{ "lpí", "ˈlpiː" },
{ "msta", "ˈmsta" },
{ "sedum", "ˈsɛdum", "sedm" },
{ "sedm", "ˈsɛdm̩" },
{ "osm", "ˈosm̩" },
{ "srdce", "ˈsr̩t͡sɛ" },
{ 'nashledanou', "ˈnazɦlɛdanou̯", "na shledanou" },
{ 'naschledanou', "ˈnasxlɛdanou̯", "na shledanou" },
{ "fašismus", "ˈfaʃɪzmus" },
{ "zmrzlina", "ˈzmr̩zlɪna" },
{ "antyhrdina", "ˈantɪɦr̩ɟɪna", "antihrdina" },
{ "identyfikovat", "ˈɪdɛntɪfɪkovat", "identifikovat" },
{ "banka", "ˈbaŋka" },
{ "měkký", "ˈmɲɛkiː" },
{ "břich", "ˈbr̝ɪx" },
{ "dřeň", "ˈdr̝ɛɲ" },
{ "hřích", "ˈɦr̝iːx" },
{ "chřest", "ˈxr̝̊ɛst" },
{ "křen", "ˈkr̝̊ɛn" },
{ "mříž", "ˈmr̝iːʃ" },
{ "přes", "ˈpr̝̊ɛs" },
{ "tři", "ˈtr̝̊ɪ" },
{ "vřes", "ˈvr̝ɛs" },
{ "zřít", "ˈzr̝iːt" },
{ "dvířka", "ˈdviːr̝̊ka"},
{ "kouř", "ˈkou̯r̝̊" },
{ "těžký", "ˈcɛʃkiː" },
{ "stín", "ˈsciːn" },
{ "děs", "ˈɟɛs" },
{ "vně", "ˈvɲɛ" },
{ "knír", "ˈkɲiːr" },
{ "hřbet", "ˈɦr̝bɛt" },
{ "zmrznout", "ˈzmr̩znou̯t" },
{ "vrh", "ˈvr̩x" },
{ "vrch", "ˈvr̩x" },
{ "vlk", "ˈvl̩k" },
{ "hrb", "ˈɦr̩p" },
{ "hod", "ˈɦot" },
{ "tah", "ˈtax" },
{ "dav", "ˈdaf" },
{ "fez", "ˈfɛs" },
{ "muž", "ˈmuʃ" },
{ "zpívat", "ˈspiːvat" },
{ "boršč", "ˈborʃt͡ʃ" },
{ "exoforie", "ˈɛɡzoforɪjɛ" },
{ "ion", "ˈjon" },
}
self:iterate(list, "check_output")
--[[
Additions take this form –
{ "entry name", "IPA" },
{ "", "" },
or, if you are generating IPA from a respelling of the term –
{ "respelling", "IPA", "entry name" }
{ "", "", "" },
Make sure to include the comma, or the module will return an error.
--]]
end
return tests