Module:zlw-mpl-IPA/testcases
Appearance
- පහත දැක්වෙන උපදෙස්, Module:zlw-mpl-IPA/testcases/documentation හි පිහිටා ඇත. Module:zlw-mpl-IPA/testcases/documentation]]. [සංස්කරණය] Categories were auto-generated by Module:module categorization. [edit]
- ප්රයෝජනවත් සබැඳි: root page • root page’s subpages • සබැඳි • transclusions • tested module • sandbox
All tests passed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
absencyjá (respelled ^absencyjá) | apˈsɛn.t͡sɨ.jɒ | apˈsɛn.t͡sɨ.jɒ | |
absencyjå (respelled ^absencyjå) | apˈsɛn.t͡sɨ.jɒ | apˈsɛn.t͡sɨ.jɒ | |
admirał | adˈmi.raɫ | adˈmi.raɫ | |
abowiém | aˈbɔ.vjem | aˈbɔ.vjem | |
abstynencyjá (respelled ^abstynencyjá) | ap.stɨˈnɛn.t͡sɨ.jɒ | ap.stɨˈnɛn.t͡sɨ.jɒ | |
drzewo | ˈdʐɛ.vɔ | ˈdʐɛ.vɔ | |
drzéw | ˈdʐef | ˈdʐef | |
drzewám | ˈdʐɛ.vɒm | ˈdʐɛ.vɒm | |
bachmistrz | ˈbax.mistʂ | ˈbax.mistʂ | |
bachmistrzów (respelled bachmi.strzów) | baxˈmi.stʂof | baxˈmi.stʂof | |
rzékę | ˈʐe.kɛ̃ | ˈʐe.kɛ̃ | |
ciążyć | ˈt͡ɕɔ̃.ʐɨt͡ɕ | ˈt͡ɕɔ̃.ʐɨt͡ɕ | |
breẃ | ˈbrɛfʲ | ˈbrɛfʲ | |
draṕ | ˈdrapʲ | ˈdrapʲ | |
gołą | ˈɡɔ.ɫɔ̃pʲ | ˈɡɔ.ɫɔ̃pʲ | |
gołąb́ | ˈɡɔ.ɫɔ̃pʲ | ˈɡɔ.ɫɔ̃pʲ | |
przymåwiać (respelled przy.måwiać) | pʂɨˈmɒ.vjat͡ɕ | pʂɨˈmɒ.vjat͡ɕ | |
przymówić | pʂɨˈmo.vit͡ɕ | pʂɨˈmo.vit͡ɕ | |
przymówca | pʂɨˈmof.t͡sa | pʂɨˈmof.t͡sa | |
połåḿ | ˈpɔ.ɫɒmʲ | ˈpɔ.ɫɒmʲ | |
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 | |
åugmentacyjå (respelled ^åugmentacyjå) | ɒwɡ.mɛnˈta.t͡sɨ.jɒ | ɒwɡ.mɛnˈta.t͡sɨ.jɒ | |
przeblekoce (respelled prze.blekoce) | pʂɛ.blɛˈkɔ.t͡sɛ | pʂɛ.blɛˈkɔ.t͡sɛ | |
ku (respelled *ku) | ku | ku | |
dziyń | ˈd͡ʑɨɲ | ˈd͡ʑɨɲ | |
dziń | ˈd͡ʑiɲ | ˈd͡ʑiɲ | |
dzień | ˈd͡ʑɛɲ | ˈd͡ʑɛɲ | |
dzeń | ˈd͡zɛɲ | ˈd͡zɛɲ | |
ciń | ˈt͡ɕiɲ | ˈt͡ɕiɲ | |
cień | ˈt͡ɕɛɲ | ˈt͡ɕɛɲ | |
ceń | ˈt͡sɛɲ | ˈt͡sɛɲ | |
siń | ˈɕiɲ | ˈɕiɲ | |
sień | ˈɕɛɲ | ˈɕɛɲ | |
seń | ˈsɛɲ | ˈsɛɲ | |
ziń | ˈʑiɲ | ˈʑiɲ | |
zień | ˈʑɛɲ | ˈʑɛɲ | |
zeń | ˈzɛɲ | ˈzɛɲ | |
achtél | ˈax.tel | ˈax.tel | |
adwersarz (respelled adwersårz) | adˈvɛr.sɒʂ | adˈvɛr.sɒʂ | |
adwersarz (respelled adwersarz) | adˈvɛr.saʂ | adˈvɛr.saʂ |
local tests = require('Module:UnitTests')
local m_IPA = require("Module:zlw-mpl-IPA")
local lang = require("Module:languages").getByCode("pl")
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.convert_to_IPA(respelling or word),
expected, options
)
end
function tests:test_ipa()
local examples = {
{'absencyjá', 'apˈsɛn.t͡sɨ.jɒ', '^absencyjá'},
{'absencyjå', 'apˈsɛn.t͡sɨ.jɒ', '^absencyjå'},
{'admirał', 'adˈmi.raɫ'},
{'abowiém', 'aˈbɔ.vjem'},
{'abstynencyjá', 'ap.stɨˈnɛn.t͡sɨ.jɒ', '^abstynencyjá'},
{'drzewo', 'ˈdʐɛ.vɔ'},
{'drzéw', 'ˈdʐef'},
{'drzewám', 'ˈdʐɛ.vɒm'},
{'bachmistrz', 'ˈbax.mistʂ'},
{'bachmistrzów', 'baxˈmi.stʂof', 'bachmi.strzów'},
{'rzékę', 'ˈʐe.kɛ̃'},
{'ciążyć', 'ˈt͡ɕɔ̃.ʐɨt͡ɕ'},
{'breẃ', 'ˈbrɛfʲ'},
{'draṕ', 'ˈdrapʲ'},
{'gołą', 'ˈɡɔ.ɫɔ̃pʲ'},
{'gołąb́', 'ˈɡɔ.ɫɔ̃pʲ'},
{'przymåwiać', 'pʂɨˈmɒ.vjat͡ɕ', 'przy.måwiać'},
{'przymówić', 'pʂɨˈmo.vit͡ɕ'},
{'przymówca', 'pʂɨˈmof.t͡sa'},
{'połåḿ', 'ˈpɔ.ɫɒmʲ'},
{'chciéć', 'ˈxt͡ɕet͡ɕ'},
{'chcieć', 'ˈxt͡ɕɛt͡ɕ'},
{'dziédzina', 'd͡ʑeˈd͡ʑi.na'},
{'dziedzina', 'd͡ʑɛˈd͡ʑi.na'},
{'åugmentacyjå', 'ɒwɡ.mɛnˈta.t͡sɨ.jɒ','^åugmentacyjå'},
{'przeblekoce', 'pʂɛ.blɛˈkɔ.t͡sɛ', 'prze.blekoce'},
{'ku', 'ku', '*ku'},
{'dziyń', 'ˈd͡ʑɨɲ'},
{'dziń', 'ˈd͡ʑiɲ'},
{'dzień', 'ˈd͡ʑɛɲ'},
{'dzeń', 'ˈd͡zɛɲ'},
{'ciń', 'ˈt͡ɕiɲ'},
{'cień', 'ˈt͡ɕɛɲ'},
{'ceń', 'ˈt͡sɛɲ'},
{'siń', 'ˈɕiɲ'},
{'sień', 'ˈɕɛɲ'},
{'seń', 'ˈsɛɲ'},
{'ziń', 'ˈʑiɲ'},
{'zień', 'ˈʑɛɲ'},
{'zeń', 'ˈzɛɲ'},
{'achtél', 'ˈax.tel'},
{'adwersarz', 'adˈvɛr.sɒʂ', 'adwersårz'},
{'adwersarz', 'adˈvɛr.saʂ', 'adwersarz'},
}
self:iterate(examples, "check_ipa")
end
return tests