6 of 42 tests failed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
klacz | ˈklat͡ʂ | ˈklat͡ʂ | |
trzeba | ˈt͡ʂɛ.ba | ˈtʂɛ.ba | |
potrzebować | po.tʂɛˈbo.vat͡ɕ | pɔt.ʂɛˈbɔ.vat͡ɕ | |
dodrzyć | ˈdo.dʐɨt͡ɕ | ˈdɔd.ʐɨt͡ɕ | |
strzoda | ˈst͡ʂɔ.da | ˈstʂɔ.da | |
abdukcyjŏ (respelled ^abdukcyjŏ) | abˈduk.t͡sɨ.jɔw | abˈduk.t͡sɨ.jɔw | |
to (respelled *to) | tɔ | tɔ | |
abkracer | apˈkra.t͡sɛr | apˈkra.t͡sɛr | |
aeropōnika | a.ɛ.rɔ.poˈɲi.ka | a.ɛ.rɔ.poˈɲi.ka | |
abōniyrować | a.bo.ɲɨˈrɔ.vat͡ɕ | a.bo.ɲɨˈrɔ.vat͡ɕ | |
trochã | ˈtrɔ.xã | ˈtrɔ.xã | |
aikōniczny | a.i.koˈɲit͡ʂ.nɨ | a.i.koˈɲit͡ʂ.nɨ | |
modrõ | ˈmɔd.rɔ̃ | ˈmɔ.drɔ̃ | |
także | ˈtaɡ.ʐɛ | ˈtaɡ.ʐɛ | |
przeblykać (respelled prze.blykać) | pʂɛˈblɨ.kat͡ɕ | pʂɛˈblɨ.kat͡ɕ | |
twardy | ˈtfar.dɨ | ˈtfar.dɨ | |
bab | ˈbap | ˈbap | |
angelski | aŋˈɡɛl.skʲi | aŋˈɡɛl.skʲi | |
ôkynko | wɔˈkɨŋ.kɔ | wɔˈkɨŋ.kɔ | |
ciynżki | ˈt͡ɕɨn.ʂkʲi | ˈt͡ɕɨn.ʂkʲi | |
dziyń | ˈd͡ʑɨɲ | ˈd͡ʑɨɲ | |
sjechać | ˈsjɛ.xat͡ɕ | ˈsjɛ.xat͡ɕ | |
ausflug | ˈaws.fluk | ˈaws.fluk | |
zjawisko | zjaˈvʲis.kɔ | zjaˈvʲis.kɔ | |
ciekawość | t͡ɕɛˈka.vɔɕt͡ɕ | t͡ɕɛˈka.vɔɕt͡ɕ | |
dziadek | ˈd͡ʑa.dɛk | ˈd͡ʑa.dɛk | |
zalyjtować | za.lɨjˈtɔ.vat͡ɕ | za.lɨjˈtɔ.vat͡ɕ | |
bardzo | ˈbar.d͡zɔ | ˈbar.d͡zɔ | |
chciéć | ˈxt͡ɕet͡ɕ | ˈxt͡ɕet͡ɕ | |
chcieć | ˈxt͡ɕɛt͡ɕ | ˈxt͡ɕɛt͡ɕ | |
dziédzina | d͡ʑeˈd͡ʑi.na | d͡ʑeˈd͡ʑi.na | |
dziedzina | d͡ʑɛˈd͡ʑi.na | d͡ʑɛˈd͡ʑi.na | |
biedro | ˈbjɛ.drɔ | ˈbjɛ.drɔ | |
powiedzieć | pɔˈvjɛ.d͡ʑɛt͡ɕ | pɔˈvjɛ.d͡ʑɛt͡ɕ | |
prŏwda | ˈprɔwv.da | ˈprɔwv.da | |
brukflŏster | brukˈflɔws.tɛr | brukˈflɔws.tɛr | |
brzyg | ˈbʐɨk | ˈbʐɨk | |
dźwiyrze | ˈd͡ʑvjɨ.ʐɛ | ˈd͡ʑvjɨ.ʐɛ | |
kerz | ˈkɛʂ | ˈkɛʂ | |
postrzodek (respelled po.strzodek) | pɔˈst͡ʂɔ.dɛk | pɔˈstʂɔ.dɛk | |
przecã | ˈpʂɛ.t͡sã | ˈpʂɛ.t͡sã | |
brać udział (respelled *brać udział) | brat͡ɕ ˈu.d͡ʑaw | brat͡ɕ ˈu.d͡ʑaw |
local tests = require('Module:UnitTests')
local m_IPA = require("Module:User:Catonif/szl-IPA")
local lang = require("Module:languages").getByCode("szl")
local function tag_IPA(IPA)
return '<span class="IPA">' .. IPA .. '</span>'
end
local options = { display = tag_IPA }
function tests:check_ipa(word, expected, respelling)
self:equals(
require("Module:links").full_link({ term = word, lang = lang }, nil, true) .. (respelling and (" (respelled " .. respelling .. ")") or ""),
m_IPA.testcase(respelling or word),
expected, options
)
end
function tests:test_ipa()
local examples = {
{'klacz', 'ˈklat͡ʂ'},
{'trzeba', 'ˈt͡ʂɛ.ba'},
{'potrzebować', 'po.tʂɛˈbo.vat͡ɕ'},
{'dodrzyć', 'ˈdo.dʐɨt͡ɕ'},
{'strzoda', 'ˈst͡ʂɔ.da'},
{'abdukcyjŏ', 'abˈduk.t͡sɨ.jɔw', '^abdukcyjŏ'},
{'to', 'tɔ', '*to'},
{'abkracer', 'apˈkra.t͡sɛr'},
{'aeropōnika', 'a.ɛ.rɔ.poˈɲi.ka'},
{'abōniyrować', 'a.bo.ɲɨˈrɔ.vat͡ɕ'},
{'trochã', 'ˈtrɔ.xã'},
{'aikōniczny', 'a.i.koˈɲit͡ʂ.nɨ'},
{'modrõ', 'ˈmɔd.rɔ̃'},
{'także', 'ˈtaɡ.ʐɛ'},
{'przeblykać', 'pʂɛˈblɨ.kat͡ɕ', 'prze.blykać'},
{'twardy', 'ˈtfar.dɨ'},
{'bab', 'ˈbap'},
{'angelski', 'aŋˈɡɛl.skʲi'},
{'ôkynko', 'wɔˈkɨŋ.kɔ'},
{'ciynżki', 'ˈt͡ɕɨn.ʂkʲi'},
{'dziyń', 'ˈd͡ʑɨɲ'},
{'sjechać', 'ˈsjɛ.xat͡ɕ'},
{'ausflug', 'ˈaws.fluk'},
{'zjawisko', 'zjaˈvʲis.kɔ'},
{'ciekawość', 't͡ɕɛˈka.vɔɕt͡ɕ'},
{'dziadek', 'ˈd͡ʑa.dɛk'},
{'zalyjtować', 'za.lɨjˈtɔ.vat͡ɕ'},
{'bardzo', 'ˈbar.d͡zɔ'},
{'chciéć', 'ˈxt͡ɕet͡ɕ'},
{'chcieć', 'ˈxt͡ɕɛt͡ɕ'},
{'dziédzina', 'd͡ʑeˈd͡ʑi.na'},
{'dziedzina', 'd͡ʑɛˈd͡ʑi.na'},
{'biedro', 'ˈbjɛ.drɔ'},
{'powiedzieć', 'pɔˈvjɛ.d͡ʑɛt͡ɕ'},
{'prŏwda', 'ˈprɔwv.da'},
{'brukflŏster', 'brukˈflɔws.tɛr'},
{'brzyg', 'ˈbʐɨk'},
{'dźwiyrze', 'ˈd͡ʑvjɨ.ʐɛ'},
{'kerz', 'ˈkɛʂ'},
{'postrzodek', 'pɔˈst͡ʂɔ.dɛk', 'po.strzodek'},
{'przecã', 'ˈpʂɛ.t͡sã'},
{'brać udział', 'brat͡ɕ ˈu.d͡ʑaw', '*brać udział'},
}
self:iterate(examples, "check_ipa")
end
return tests