Jump to content

Module:rki-pron/testcases

From Wiktionary, the free dictionary

58 of 58 tests failed. (refresh)

TextExpectedActualDiffers at
test_pron:
Failedကစား
(respelled +က'+စား)
ɡəzá | ka.ca: | kacāʺ | |ɡəzá | ka.ca: | kacāʺ | | 27
Failedကတ်ဝက်kaʔwɔʔ | kat-wak | katʻvakʻ | kat-wet | kaʔweʔkɛʔwɔʔ | kat-wak | katʻvakʻ | | 2
Failedကပျာကယာ
(respelled +ka'+pya+ka'ya)
ɡəbjàɡəjà | ka.pyaka.ya | kapyākayā | găbyagăya | (k)ă(p)ya(k)ăyaɡəbjàɡəjà | ka.pyaka.ya | kapyākayā | | 39
Failedကပျာကယာ
(respelled +က'+ပျာ+က'ယာ)
ɡəbjàɡəjà | ka.pyaka.ya | kapyākayā | găbyagăya | (k)ă(p)ya(k)ăyaɡəbjàɡəjà | ka.pyaka.ya | kapyākayā | | 39
Failedကြိုဆိုပါ၏
(respelled ကြို+ဆို+ပါ၏)
kɹòzòbàʔḭ | kruihcuipae | kruichuipāe* | kyozobaè. | cou(hs)ou(p)aékɹòzòbàʔḭ | kruihcuipae | kruichuipāe* | | 42
Failedကွန်ပျူတာkʊ̀ɴpjùtà | kwanpyuta | kvanʻpyūtā | kunpyuta | kuñpyutakwɛ̀ɴpjùtà | kwanpyuta | kvanʻpyūtā | | 2
Failedကာတွက်kàtwɛʔ | ka-twak | kātvakʻ | ka-twet | katweʔkàtwɔʔ | ka-twak | kātvakʻ | | 5
Failedခြေထောက်
(respelled ခြေ+ထောက်)
t͡ɕʰèdaʊʔ | hkrehtauk | khrethokʻ | chedauk | hcei(ht)auʔt͡ɕʰìdaʊʔ | hkrehtauk | khrethokʻ | | 5
Failedခလုတ်
(respelled ခ'လုတ်)
kʰəloʊʔ | hka.lut | khalutʻ | hkălok | hkălouʔkʰəloʊʔ | hka.lut | khalutʻ | | 31
Failedငါးဥ
(respelled ငါး'ဥ)
ŋəʔṵ | nga:u. | ṅāʺu | ngău. | ngăúŋəʔṵ | nga:u. | ṅāʺu | | 24
Failedစာကြည့်တိုက်
(respelled စာကြည့်+တိုက်)
sàkɹḛdaɪʔ | ca-krany.tuik | cākraññʻʹtuikʻ | sa-kyi.daik | sací(t)aiʔsàkɹḛdaɪʔ | ca-krany.tuik | cākraññʻʹtuikʻ | | 46
Failedစာရေး
(respelled စာ'ရေး)
səɹí | care: | cāreʺ | săye: | săyeìsəɹí | care: | cāreʺ | | 24
Failedဆန်ပြုတ်
(respelled ဆန်+ပြုတ်)
sʰàɴbjoʊʔ | hcanprut | chanʻprutʻ | hsanbyok | hsañ(p)youʔsʰɛ̀ɴbɹoʊʔ | hcanprut | chanʻprutʻ | | 3
Failedဆီပုံး
(respelled ဆီ+ပုံး)
sʰìbóʊɴ | hcipum: | chīpuṃʺ | hsibon: | hsi(p)oùñsʰìbóʊɴ | hcipum: | chīpuṃʺ | | 31
Failedတန်ဂါtàɴɡà | tan-ga | tanʻgā | tan-ga | tañgatɛ̀ɴɡà | tan-ga | tanʻgā | | 2
Failedတာငါtàŋà | ta-nga | tāṅā | ta-nga | tangatàŋà | ta-nga | tāṅā | | 24
Failedဒူးထောက်dútʰaʊʔ | du:htauk | dūʺthokʻ | du:htauk | dùhtauʔdútʰaʊʔ | du:htauk | dūʺthokʻ | | 33
Failedနက်ဖြန်
(respelled ne?hpra~)
nɔʔpʰɹàɴ | nakhpran | nakʻphranʻ | nethpyan | neʔhpyañnɔʔha̰pa̰ɹɛ̀ɴ | nakhpran | nakʻphranʻ | | 4
Failedနက်ဖြန်nɛʔpʰɹàɴ | nakhpran | nakʻphranʻ | nethpyan | neʔhpyañnɔʔpʰɹɛ̀ɴ | nakhpran | nakʻphranʻ | | 2
Failedပရိဘောဂ
(respelled pa'ri/bo\ga/)
pəɹḭbɔ́ɡa̰ | pa.ri.bhau:ga. | paribhoga | pări.baw:ga. | păríbògápəɹḭbɔ́ɡa̰ | pa.ri.bhau:ga. | paribhoga | | 43
Failedပရိဘောဂ
(respelled ပ'*ရိဘောဂ)
pəɹḭbɔ́ɡa̰ | pa.ri.bhau:ga. | paribhoga | pări.baw:ga. | păríbògápəɹḭbɔ́ɡa̰ | pa.ri.bhau:ga. | paribhoga | | 43
Failedဖြည်းဖြည်း
(respelled ဖြည်2း+ဖြည်2း)
pʰjíbjí | hprany:hprany: | phraññʻʺphraññʻʺ | hpye:bye: | hpyeì(hp)yeìpʰɹíbɹí | hprany:hprany: | phraññʻʺphraññʻʺ | | 3
Failedဘခင်
(respelled -ဘ+ခင်)
pʰa̰ɡɔ̀ɴ | bha.hkang | bhakhaṅʻ | hpa.gin | hpá(hk)iñpʰa̰ɡɔ̀ɴ | bha.hkang | bhakhaṅʻ | | 35
Failedမင်္ဂလာပါ
(respelled mi~ga'la+pa)
mɪ̀ɴɡəlàbà | mangga.lapa | maṅʻgalāpā | min-gălaba | miñgăla(p)amɔ̀ɴɡəlàbà | mangga.lapa | maṅʻgalāpā | | 2
Failedမင်္ဂလာပါ
(respelled မင်္ဂ'လာ+ပါ)
mɪ̀ɴɡəlàbà | mangga.lapa | maṅʻgalāpā | min-gălaba | miñgăla(p)amɔ̀ɴɡəlàbà | mangga.lapa | maṅʻgalāpā | | 2
Failedမျက်စိmjɔʔsḭ | myakci. | myakʻci | myetsi. | myeʔsímjɔʔsḭ | myakci. | myakʻci | | 30
Failedမြန်မာmɹàɴmà | mranma | mranʻmā | myanma | myañmamɹɛ̀ɴmà | mranma | mranʻmā | | 3
Failedလျှင်
(respelled *လျှင်)
l̥jɪ̀ɴ | hlyang | lyhaṅʻ | hlyin | hlyiñl̥jɔ̀ɴ | hlyang | lyhaṅʻ | | 4
Failedလျှို့ဝှက်ʃo̰ʍɛʔ | hlyui.hwak | lyhuiʹvhakʻ | sho.hwet | hyoúhweʔʃo̰ʍɔʔ | hlyui.hwak | lyhuiʹvhakʻ | | 5
Failedဝက်ဝံwɔʔwʊ̀ɴ | wak-wam | vakʻvaṃ | wet-wun | weʔwuñwɔʔwwɛ̀ɴ | wak-wam | vakʻvaṃ | | 5
Failedသူငယ်
(respelled သူ'ငယ်)
θəŋɛ̀ | su-ngai | sūṅayʻ | thăngè | thăngeθəŋè | su-ngai | sūṅayʻ | | 4
Failedအက်ယန်ʔɛʔjàɴ | ak-yan | ʼakʻyanʻ | etyan | eʔyañʔɔʔjɛ̀ɴ | ak-yan | ʼakʻyanʻ | | 2
Failedအခွံ
(respelled အ'ခွံ)
ʔəkʰʊ̀ɴ | a.hkwam | ʼakhvaṃ | ăhkun | ăhkuñʔəkʰwɛ̀ɴ | a.hkwam | ʼakhvaṃ | | 5
Failedအညာသား
(respelled အ'ညာ+သား)
ʔəɲàðá | a.nyasa: | ʼaññāsāʺ | ănyadha: | ănya(th)àʔəɲàðá | a.nyasa: | ʼaññāsāʺ | | 32
Failedအမြီး
(respelled အ'မီး)
ʔəmí | a.mri: | ʼamrīʺ | ămi: | ămìʔəmí | a.mri: | ʼamrīʺ | | 26
Failedအာကျန်ʔàt͡ɕàɴ | a-kyan | ʼākyanʻ | a-kyan | acañʔàt͡ɕɛ̀ɴ | a-kyan | ʼākyanʻ | | 6
Failedအုန်းဆီ
(respelled အုန်း+ဆီ)
ʔóʊɴzì | un:hci | ʼunʻʺchī | on:zi | oùñ(hs)iʔóʊɴzì | un:hci | ʼunʻʺchī | | 30
Failedကမ်းခြေ
(respelled ကမ်း+ခြေ)
káɴd͡ʑè | kam:hkre | kamʻʺkhre | kan:gye | kàñ(hc)eikɛ́ɴgɹì | kam:hkre | kamʻʺkhre | | 2
Failedကမ္ဘာ
(respelled +ကမ်'ဘာ)
ɡəbà | kambha | kambhā | găba | (k)ăbaɡəbà | kambha | kambhā | | 26
Failedမန္တလေး
(respelled မန်+တ'လေး)
màɴdəlé | manta.le: | mantaleʺ | mandăle: | mañ(t)ăleìmɛ̀ɴdəlí | manta.le: | mantaleʺ | | 2
Failedဆောင်းဦးsʰáʊɴʔú | hcaung:u: | choṅʻʺūʺ | hsaung:u: | hsaùñùsʰáʊɴʔú | hcaung:u: | choṅʻʺūʺ | | 34
Failedဆော့sʰɔ̰ | hcau. | choʹ | hsaw. | hsósʰɔ̰ | hcau. | choʹ | | 23
Failedအဘိဓာန်
(respelled a'bi/da~)
ʔəbḭdàɴ | a.bhi.dhan | ʼabhidhānʻ | ăbi.dan | ăbídañʔəbḭdɛ̀ɴ | a.bhi.dhan | ʼabhidhānʻ | | 6
Failedအဘိဓာန်
(respelled a'bei?da~)
ʔəbeɪʔdàɴ | a.bhi.dhan | ʼabhidhānʻ | ăbeikdan | ăbeiʔdañʔəbeɪʔdɛ̀ɴ | a.bhi.dhan | ʼabhidhānʻ | | 8
Failedတက္ကသိုလ်
(respelled te?ka'thou)
tɔʔkəθò | takka.suil | takkasuilʻ | tetkătho | teʔkăthoutɔʔkəθò | takka.suil | takkasuilʻ | | 37
Failedကဲ့kɛ̰ | kai. | kaiʹ | kè. | kékḛ | kai. | kaiʹ | | 2
Failedဒေါ်dɔ̀ | dau | doʻ | daw | dodɔ̀ | dau | doʻ | | 19
Failedပေါက်တူးpaʊʔtú | pauktu: | pokʻtūʺ | pauktu: | pauʔtùpaʊʔtú | pauktu: | pokʻtūʺ | | 30
Failedဩစတြေးလျ
(respelled ဩစ'တ'ရေး*လျ)
ʔɔ́sətəɹélja̰ | au:ca.tre:lya. | ocatreʺlya | aw:sătăre:lya. | òsătăreìlyáʔɔ́sətəɹílja̰ | au:ca.tre:lya. | ocatreʺlya | | 9
Failedဩစတြေးလျ
(respelled o\sa'ta'rei\lya/)
ʔɔ́sətəɹélja̰ | au:ca.tre:lya. | ocatreʺlya | aw:sătăre:lya. | òsătăreìlyáʔɔ́sətəɹílja̰ | au:ca.tre:lya. | ocatreʺlya | | 9
Failedအိန္ဒိယʔèɪɴdḭja̰ | indi.ya. | ʼindiya | eindi.ya. | eiñdíyáʔèɪɴdḭja̰ | indi.ya. | ʼindiya | | 34
Failedသွင်သွင်
(respelled သွင်+သွင်)
θwɔ̀ɴðwɔ̀ɴ | swangswang | svaṅʻsvaṅʻ | thwindhwin | thwiñ(th)wiñθwɔ̀ɴðwɔ̀ɴ | swangswang | svaṅʻsvaṅʻ | | 40
Failedရွှံ့hɹʊ̰ɴ | hrwam. | rvhaṃʹ | shun. | hyúñhɹwɛɴ | hrwam. | rvhaṃʹ | | 3
Failedသာမဏေ
(respelled သာမ'ဏေ)
θàmənì | sama.ne | sāmaṇe | thamăne | thamăneiθàmənì | sama.ne | sāmaṇe | | 29
Failedဝမ်း
(respelled w/a\~)
wáɴ | wam: | vamʻʺ | wan: | wàñwɛ́ɴ | wam: | vamʻʺ | | 2
Failedဝမ်း
(respelled ဝ/န်း)
wáɴ | wam: | vamʻʺ | wan: | wàñwɛ́ɴ | wam: | vamʻʺ | | 2
Failedတျူလစ်tjùlaɪʔ | tyulac | tyūlacʻ | tyulit | tyuliʔtjùlaɪʔ | tyulac | tyūlacʻ | | 30
Failedသောမနဿ
(respelled သောမ'နဿ)
θɔ́mənaʔθa̰ | sau:ma.na.ssa. | somanassa | thaw:mănattha. | thòmănaʔtháθɔ́mənɛʔθa̰ | sau:ma.na.ssa. | somanassa | | 7

local tests = require('Module:UnitTests')
local m_my_pron = require('Module:rki-pron')
local m_links = require('Module:links')

local lang = require('Module:languages').getByCode('rki')

local function tag_IPA(IPA)
	return mw.ustring.gsub(IPA, "^%S+", '<span class="IPA">%0</span>')
end

function tests:check_pron(word, respelling, expected)
	self:equals(
		m_links.full_link({lang = lang, term = word, tr = '-'}, nil, true) ..
			(respelling ~= word and ("<br>(respelled <span class=\"Mymr\">" .. respelling .. "</span>)") or ""),
		m_my_pron.generate_tests(word, respelling),
		expected,
		{ nowiki = true, display = tag_IPA }
	)
end

local examples = {
	{ "ကစား", "+က'+စား", "ɡəzá | ka.ca: | kacāʺ |  |" },
	{ "ကတ်ဝက်", "ကတ်ဝက်", "kaʔwɔʔ | kat-wak | katʻvakʻ | kat-wet | kaʔweʔ" },
	{ "ကပျာကယာ", "+ka'+pya+ka'ya", "ɡəbjàɡəjà | ka.pyaka.ya | kapyākayā | găbyagăya | (k)ă(p)ya(k)ăya" },
	{ "ကပျာကယာ", "+က'+ပျာ+က'ယာ", "ɡəbjàɡəjà | ka.pyaka.ya | kapyākayā | găbyagăya | (k)ă(p)ya(k)ăya" },
	{ "ကြိုဆိုပါ၏", "ကြို+ဆို+ပါ၏", "kɹòzòbàʔḭ | kruihcuipae | kruichuipāe* | kyozobaè. | cou(hs)ou(p)aé" },
	{ "ကွန်ပျူတာ", "ကွန်ပျူတာ", "kʊ̀ɴpjùtà | kwanpyuta | kvanʻpyūtā | kunpyuta | kuñpyuta" },
	{ "ကာတွက်", "ကာတွက်", "kàtwɛʔ | ka-twak | kātvakʻ | ka-twet | katweʔ" },
	{ "ခြေထောက်", "ခြေ+ထောက်", "t͡ɕʰèdaʊʔ | hkrehtauk | khrethokʻ | chedauk | hcei(ht)auʔ" },
	{ "ခလုတ်", "ခ'လုတ်", "kʰəloʊʔ | hka.lut | khalutʻ | hkălok | hkălouʔ" },
	{ "ငါးဥ", "ငါး'ဥ", "ŋəʔṵ | nga:u. | ṅāʺu | ngău. | ngăú" },
	{ "စာကြည့်တိုက်", "စာကြည့်+တိုက်", "sàkɹḛdaɪʔ | ca-krany.tuik | cākraññʻʹtuikʻ | sa-kyi.daik | sací(t)aiʔ" },
	{ "စာရေး", "စာ'ရေး", "səɹí | care: | cāreʺ | săye: | săyeì" },
	{ "ဆန်ပြုတ်", "ဆန်+ပြုတ်", "sʰàɴbjoʊʔ | hcanprut | chanʻprutʻ | hsanbyok | hsañ(p)youʔ" },
	{ "ဆီပုံး", "ဆီ+ပုံး", "sʰìbóʊɴ | hcipum: | chīpuṃʺ | hsibon: | hsi(p)oùñ" },
	{ "တန်ဂါ", "တန်ဂါ", "tàɴɡà | tan-ga | tanʻgā | tan-ga | tañga" },
	{ "တာငါ", "တာငါ", "tàŋà | ta-nga | tāṅā | ta-nga | tanga" },
	{ "ဒူးထောက်", "ဒူးထောက်", "dútʰaʊʔ | du:htauk | dūʺthokʻ | du:htauk | dùhtauʔ" },
	{ "နက်ဖြန်", "ne?hpra~", "nɔʔpʰɹàɴ | nakhpran | nakʻphranʻ | nethpyan | neʔhpyañ" },
	{ "နက်ဖြန်", "နက်ဖြန်", "nɛʔpʰɹàɴ | nakhpran | nakʻphranʻ | nethpyan | neʔhpyañ" },
	{ "ပရိဘောဂ", "pa'ri/bo\\ga/", "pəɹḭbɔ́ɡa̰ | pa.ri.bhau:ga. | paribhoga | pări.baw:ga. | păríbògá" },
	{ "ပရိဘောဂ", "ပ'*ရိဘောဂ", "pəɹḭbɔ́ɡa̰ | pa.ri.bhau:ga. | paribhoga | pări.baw:ga. | păríbògá" },
	{ "ဖြည်းဖြည်း", "ဖြည်2း+ဖြည်2း", "pʰjíbjí | hprany:hprany: | phraññʻʺphraññʻʺ | hpye:bye: | hpyeì(hp)yeì" },
	{ "ဘခင်", "-ဘ+ခင်", "pʰa̰ɡɔ̀ɴ | bha.hkang | bhakhaṅʻ | hpa.gin | hpá(hk)iñ" },
	{ "မင်္ဂလာပါ", "mi~ga'la+pa", "mɪ̀ɴɡəlàbà | mangga.lapa | maṅʻgalāpā | min-gălaba | miñgăla(p)a" },
	{ "မင်္ဂလာပါ", "မင်္ဂ'လာ+ပါ", "mɪ̀ɴɡəlàbà | mangga.lapa | maṅʻgalāpā | min-gălaba | miñgăla(p)a" },
	{ "မျက်စိ", "မျက်စိ", "mjɔʔsḭ | myakci. | myakʻci | myetsi. | myeʔsí" },
	{ "မြန်မာ", "မြန်မာ", "mɹàɴmà | mranma | mranʻmā | myanma | myañma" },
	{ "လျှင်", "*လျှင်", "l̥jɪ̀ɴ | hlyang | lyhaṅʻ | hlyin | hlyiñ" },
	{ "လျှို့ဝှက်", "လျှို့ဝှက်", "ʃo̰ʍɛʔ | hlyui.hwak | lyhuiʹvhakʻ | sho.hwet | hyoúhweʔ" },
	{ "ဝက်ဝံ", "ဝက်ဝံ", "wɔʔwʊ̀ɴ | wak-wam | vakʻvaṃ | wet-wun | weʔwuñ" },
	{ "သူငယ်", "သူ'ငယ်", "θəŋɛ̀ | su-ngai | sūṅayʻ | thăngè | thănge" },
	{ "အက်ယန်", "အက်ယန်", "ʔɛʔjàɴ | ak-yan | ʼakʻyanʻ | etyan | eʔyañ" },
	{ "အခွံ", "အ'ခွံ", "ʔəkʰʊ̀ɴ | a.hkwam | ʼakhvaṃ | ăhkun | ăhkuñ" },
	{ "အညာသား", "အ'ညာ+သား", "ʔəɲàðá | a.nyasa: | ʼaññāsāʺ | ănyadha: | ănya(th)à" },
	{ "အမြီး", "အ'မီး", "ʔəmí | a.mri: | ʼamrīʺ | ămi: | ămì" },
	{ "အာကျန်", "အာကျန်", "ʔàt͡ɕàɴ | a-kyan | ʼākyanʻ | a-kyan | acañ" },
	{ "အုန်းဆီ", "အုန်း+ဆီ", "ʔóʊɴzì | un:hci | ʼunʻʺchī | on:zi | oùñ(hs)i" },
	{ "ကမ်းခြေ", "ကမ်း+ခြေ", "káɴd͡ʑè | kam:hkre | kamʻʺkhre | kan:gye | kàñ(hc)ei" },
	{ "ကမ္ဘာ", "+ကမ်'ဘာ", "ɡəbà | kambha | kambhā | găba | (k)ăba" },
	{ "မန္တလေး", "မန်+တ'လေး", "màɴdəlé | manta.le: | mantaleʺ | mandăle: | mañ(t)ăleì" },
	{ "ဆောင်းဦး", "ဆောင်းဦး", "sʰáʊɴʔú | hcaung:u: | choṅʻʺūʺ | hsaung:u: | hsaùñù" },
	{ "ဆော့", "ဆော့", "sʰɔ̰ | hcau. | choʹ | hsaw. | hsó" },
	{ "အဘိဓာန်", "a'bi/da~", "ʔəbḭdàɴ | a.bhi.dhan | ʼabhidhānʻ | ăbi.dan | ăbídañ" },
	{ "အဘိဓာန်", "a'bei?da~", "ʔəbeɪʔdàɴ | a.bhi.dhan | ʼabhidhānʻ | ăbeikdan | ăbeiʔdañ" },
	{ "တက္ကသိုလ်", "te?ka'thou", "tɔʔkəθò | takka.suil | takkasuilʻ | tetkătho | teʔkăthou" },
	{ "ကဲ့", "ကဲ့", "kɛ̰ | kai. | kaiʹ | kè. | ké" },
	{ "ဒေါ်", "ဒေါ်", "dɔ̀ | dau | doʻ | daw | do" },
	{ "ပေါက်တူး", "ပေါက်တူး", "paʊʔtú | pauktu: | pokʻtūʺ | pauktu: | pauʔtù" },
    { "ဩစတြေးလျ", "ဩစ'တ'ရေး*လျ", "ʔɔ́sətəɹélja̰ | au:ca.tre:lya. | ocatreʺlya | aw:sătăre:lya. | òsătăreìlyá" },
	{ "ဩစတြေးလျ", "o\\sa'ta'rei\\lya/", "ʔɔ́sətəɹélja̰ | au:ca.tre:lya. | ocatreʺlya | aw:sătăre:lya. | òsătăreìlyá" },
	{ "အိန္ဒိယ", "အိန္ဒိယ", "ʔèɪɴdḭja̰ | indi.ya. | ʼindiya | eindi.ya. | eiñdíyá" },
	{ "သွင်သွင်", "သွင်+သွင်", "θwɔ̀ɴðwɔ̀ɴ | swangswang | svaṅʻsvaṅʻ | thwindhwin | thwiñ(th)wiñ" },
	{ "ရွှံ့", "ရွှံ့", "hɹʊ̰ɴ | hrwam. | rvhaṃʹ | shun. | hyúñ" },
	{ "သာမဏေ", "သာမ'ဏေ", "θàmənì | sama.ne | sāmaṇe | thamăne | thamănei" },
	{ "ဝမ်း", "w/a\\~", "wáɴ | wam: | vamʻʺ | wan: | wàñ" },
	{ "ဝမ်း", "ဝ/န်း", "wáɴ | wam: | vamʻʺ | wan: | wàñ" },
    { "တျူလစ်", "တျူလစ်", "tjùlaɪʔ | tyulac | tyūlacʻ | tyulit | tyuliʔ" },
    { "သောမနဿ", "သောမ'နဿ",  "θɔ́mənaʔθa̰ | sau:ma.na.ssa. | somanassa | thaw:mănattha. | thòmănaʔthá" },
}

function tests:test_pron()
	self:iterate(
		examples,
		function (self, ...)
			self:check_pron(...)
		end)
end

return tests