Module:User:Fenakhay/mt-IPA/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:User:Fenakhay/mt-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 58 tests failed. (refresh)
Text | Expected | Actual | Comments | |
---|---|---|---|---|
għoxx | ɔˤːʃ | ɔˤːʃ | ||
għoxa (respelled ḡoxa) | ɔˤːʃa | ɔˤːʃa | archaic | |
għoxa (respelled ḡoxa) | ɣɔʃa | ɣɔʃa | archaic rural | |
bajd | bajt | bajt | ||
bgħid (respelled bgħîd) | bəˤjt | bəˤjt | ||
Alla jagħtih il-ġenna (respelled Alla jagħtîh il-ġenna) | alla jaˤːtɪːħ ɪld͡ʒɛnna | alla jaˤːtɪːħ ɪld͡ʒɛnna | ||
baħar | baħar | baħar | ||
bieb | bɪːp | bɪːp | ||
bagħat | baˤːt | baˤːt | ||
bagħal (respelled baḡal) | baˤːl | baˤːl | archaic | |
bagħal (respelled baḡal) | baɣal | baɣal | archaic rural | |
bgħula (respelled bḡûla) | bəˤwla | bəˤwla | archaic | |
bgħula (respelled bḡûla) | bɣuːla | bɣuːla | archaic rural | |
bejjiegħ | bɛjjɪːħ | bɛjjɪːħ | ||
begħtu | bɛˤːtu | bɛˤːtu | ||
għoxrin (respelled għoxrîn) | ɔˤːʃriːn | ɔˤːʃriːn | ||
għira (respelled ḡîra) | əˤjra | əˤjra | archaic | |
għira (respelled ḡîra) | ɣiːra | ɣiːra | archaic rural | |
ikrah | ɪkraħ | ɪkraħ | ||
jixbhu (respelled jixbħu) | jɪʃpħu | jɪʃpħu | ||
hedded | ɛːddɛt | ɛːddɛt | ||
fehmet | fɛːmɛt | fɛːmɛt | ||
jibniha (respelled jibnîha) | jɪbnɪːja | jɪbnɪːja | ||
nħobbuhom (respelled nħobbûhom) | (ɪ)nħɔbbuːwɔm | (ɪ)nħɔbbuːwɔm | ||
rahom (respelled râhom) | rɔːm | rɔːm | ||
ftehim (respelled ftehîm) | ftɛjm, ftɛjiːm | ftɛːiːm | ||
lbieraħ | (ɪ)lbɪːraħ | (ɪ)lbɪːraħ | ||
għandek bżonn għajnuna (respelled għandek bżonn għajnûna) | aˤːndɛk bzɔnn aˤːjnuːna | aˤːndɛk bzɔnn aˤːjnuːna | ||
tista’ tgħinni (respelled tista' tgħînni) | tɪstaˤ təˤjnnɪ | tɪstaˤ təˤjnnɪ | ||
attakkaha (respelled attakkâha) | attakkaː | attakkaː | ||
ħtabtu | ħtaptu | ħtaptu | ||
dsatax (respelled dsatâx) | t͡sataːʃ | t͡sataːʃ | ||
bgħadt (respelled bḡadt) | baˤːt | baˤːt | archaic | |
bgħadt (respelled bḡadt) | bɣat | bɣat | archaic rural | |
televixin (respelled televižin) | tɛlɛvɪʒɪn | tɛlɛvɪʒɪn | ||
bgħadtu (respelled bḡadtu) | baˤːttu | baˤːttu | archaic | |
bgħadtu (respelled bḡadtu) | bɣattu | bɣattu | archaic rural | |
obogħdu (respelled oboḡdu) | ɔbɔˤːdu | ɔbɔˤːdu | archaic | |
obogħdu (respelled oboḡdu) | ɔbɔɣdu | ɔbɔɣdu | archaic rural | |
obogħtu (respelled oboḡtu) | ɔbɔˤːtu | ɔbɔˤːtu | archaic | |
obogħtu (respelled oboḡtu) | ɔbɔħtu | ɔbɔħtu | archaic rural | |
nnazzjonalizza | (ɪ)nnatt͡sjɔnalɪdd͡za | (ɪ)nnatt͡sjɔnalɪdd͡za | ||
nazzjonalizzazzjonijiet | natt͡sjɔnalɪdd͡zatt͡sjɔnɪjɪːt | natt͡sjɔnalɪdd͡zatt͡sjɔnɪjɪːt | ||
ġġeneralizzajtu | (ɪ)dd͡ʒɛnɛralɪdd͡zajtu | (ɪ)dd͡ʒɛnɛralɪdd͡zajtu | ||
tagħha | taħħa | taħħa | ||
tiegħek | tɪːəˤk | tɪːəˤk | ||
tiegħu | tɪːəˤw | tɪːəˤw | ||
spallti | spalltɪ | spalltɪ | ||
żbajjeb | zbajjɛp | zbajjɛp | ||
jisimgħu | jɪsɪməˤw | jɪsɪməˤw | ||
qabilha | ʔabɪla | ʔabɪla | ||
jarawhx (respelled jarawħx) | jarawħʃ | jarawħʃ | ||
għereq | ɛˤːrɛʔ | əˤrɛʔ | ||
għereq (respelled ḡèreq) | ɛˤːrɛʔ | ɛˤːrɛʔ | archaic | |
għereq (respelled ḡèreq) | ɣɛrɛʔ | ɣɛrɛʔ | archaic rural | |
bigħ (respelled bîgħ) | bɪːħ | bɪːħ | ||
pitgħada (respelled pitḡada) | pɪtaˤːda | pɪtaˤːda | archaic | |
pitgħada (respelled pitḡada) | pɪdɣada | pɪdɣada | archaic rural |
local tests = require("Module:UnitTests")
local m_IPA = require("Module:User:Fenakhay/mt-IPA")
local m_links = require("Module:links")
local lang = require("Module:languages").getByCode("mt")
function link(term)
return require("Module:links").full_link {
term = term,
lang = lang,
sc = sc
}
end
local function tag_IPA(IPA)
return '<span class="IPA">' .. IPA .. '</span>'
end
local options = { display = tag_IPA }
function tests:check_ipa(term, expected_archaic, expected_rural, respelling)
if respelling == nil then
respelling = expected_rural
expected_rural = nil
end
local archaic = m_IPA.mt_IPA(respelling or term, "archaic")
local rural_archaic = m_IPA.mt_IPA(respelling or term, "rural")
local show_both = archaic ~= rural_archaic
options.comment = show_both and "archaic"
self:equals(
link(term) .. (respelling and (" (respelled " .. respelling .. ")") or ""),
archaic,
expected_archaic,
options
)
if show_both then
options.comment = show_both and "archaic rural"
self:equals(
link(term) .. (respelling and (" (respelled " .. respelling .. ")") or ""),
rural_archaic,
expected_rural,
options
)
end
end
function tests:test_pron()
examples = {
{ "għoxx", "ɔˤːʃ"},
{ "għoxa", "ɔˤːʃa", "ɣɔʃa", "ḡoxa"},
{ "bajd", "bajt"},
{ "bgħid", "bəˤjt", "bgħîd"},
{ "Alla jagħtih il-ġenna", "alla jaˤːtɪːħ ɪld͡ʒɛnna", "Alla jagħtîh il-ġenna"},
{ "baħar", "baħar"},
{ "bieb", "bɪːp"},
{ "bagħat", "baˤːt"},
{ "bagħal", "baˤːl", "baɣal", "baḡal"},
{ "bgħula", "bəˤwla", "bɣuːla", "bḡûla"},
{ "bejjiegħ", "bɛjjɪːħ"},
{ "begħtu", "bɛˤːtu"},
{ "għoxrin", "ɔˤːʃriːn", "għoxrîn"},
{ "għira", "əˤjra", "ɣiːra", "ḡîra"},
{ "ikrah", "ɪkraħ"},
{ "jixbhu", "jɪʃpħu", "jixbħu"},
{ "hedded", "ɛːddɛt"},
{ "fehmet", "fɛːmɛt"},
{ "jibniha", "jɪbnɪːja", "jibnîha"},
{ "nħobbuhom", "(ɪ)nħɔbbuːwɔm", "nħobbûhom"},
{ "rahom", "rɔːm", "râhom"},
{ "ftehim", "ftɛjm, ftɛjiːm", "ftehîm"},
{ "lbieraħ", "(ɪ)lbɪːraħ"},
{ "għandek bżonn għajnuna", "aˤːndɛk bzɔnn aˤːjnuːna", "għandek bżonn għajnûna"},
{ "tista' tgħinni", "tɪstaˤ təˤjnnɪ", "tista' tgħînni"},
{ "attakkaha", "attakkaː", "attakkâha"},
{ "ħtabtu", "ħtaptu"},
{ "dsatax", "t͡sataːʃ", "dsatâx"},
{ "bgħadt", "baˤːt", "bɣat", "bḡadt"},
{ "televixin", "tɛlɛvɪʒɪn", "televižin"},
{ "bgħadtu", "baˤːttu", "bɣattu", "bḡadtu"},
{ "obogħdu", "ɔbɔˤːdu", "ɔbɔɣdu", "oboḡdu"},
{ "obogħtu", "ɔbɔˤːtu", "ɔbɔħtu", "oboḡtu"},
{ "nnazzjonalizza", "(ɪ)nnatt͡sjɔnalɪdd͡za"},
{ "nazzjonalizzazzjonijiet", "natt͡sjɔnalɪdd͡zatt͡sjɔnɪjɪːt"},
{ "ġġeneralizzajtu", "(ɪ)dd͡ʒɛnɛralɪdd͡zajtu"},
{ "tagħha", "taħħa"},
{ "tiegħek", "tɪːəˤk"},
{ "tiegħu", "tɪːəˤw"},
{ "spallti", "spalltɪ"},
{ "żbajjeb", "zbajjɛp"},
{ "jisimgħu", "jɪsɪməˤw"},
{ "qabilha", "ʔabɪla"},
{ "jarawhx", "jarawħʃ", "jarawħx"},
{ "għereq", "ɛˤːrɛʔ"},
{ "għereq", "ɛˤːrɛʔ", "ɣɛrɛʔ", "ḡèreq"},
{ "bigħ", "bɪːħ", "bîgħ"},
{ "pitgħada", "pɪtaˤːda", "pɪdɣada", "pitḡada"},
}
tests:iterate(examples, "check_ipa")
end
return tests