6 of 41 tests failed. (refresh)

TextExpectedActualDiffers at
test_ipa:
Passedson mwngz hwnj max gvaq dah/θoːn˨˦ mɯŋ˧˩ hɯn˥ ma˦˨ kʷa˧˥ ta˧//θoːn˨˦ mɯŋ˧˩ hɯn˥ ma˦˨ kʷa˧˥ ta˧/
TextExpectedActualDiffers at
test_old:
PassedBauq SawcuenghBauƽ SəɯcueŋƅBauƽ Səɯcueŋƅ
PassedYinzminzgunghseq dwg yinzminz dih swnghcanj caeuq swnghhoz dih yiengh cujciz ndeuYinƨminƨguŋƅseƽ dɯg yinƨminƨ diƅ sɯŋƅcanз cəuƽ sɯŋƅhoƨ diƅ yieŋƅ cuзciƨ ƌeuYinƨminƨguŋƅseƽ dɯg yinƨminƨ diƅ sɯŋƅcanз cəuƽ sɯŋƅhoƨ diƅ yieŋƅ cuзciƨ ƌeu
PassedCunghgoz Yinzminz Yinzhangz cib maenzCuŋƅgoƨ Yinƨminƨ Yinƨhaŋƨ cib mənƨCuŋƅgoƨ Yinƨminƨ Yinƨhaŋƨ cib mənƨ
TextExpectedActualDiffers at
test_syllabification:
PassedSawndip/θaɯ˨˦ ɗip˥//θaɯ˨˦ ɗip˥/
PassedCunghgoz Yinzminz Yinzhangz cib maenz/ɕuŋ˧ ko˧˩ jin˧˩ min˧˩ jin˧˩ haːŋ˧˩ ɕip˧ man˧˩//ɕuŋ˧ ko˧˩ jin˧˩ min˧˩ jin˧˩ haːŋ˧˩ ɕip˧ man˧˩/
Passedson mwngz hwnj max gvaq dah/θoːn˨˦ mɯŋ˧˩ hɯn˥ ma˦˨ kʷa˧˥ ta˧//θoːn˨˦ mɯŋ˧˩ hɯn˥ ma˦˨ kʷa˧˥ ta˧/
Passedbak daep bag daeb/paːk˧˥ tap˥ paːk˧ tap˧//paːk˧˥ tap˥ paːk˧ tap˧/
Passedga ge gi go gu gw/ka˨˦ ke˨˦ ki˨˦ ko˨˦ ku˨˦ kɯ˨˦//ka˨˦ ke˨˦ ki˨˦ ko˨˦ ku˨˦ kɯ˨˦/
Passedgaen gen gien goen guen gwen/kan˨˦ keːn˨˦ kiːn˨˦ kon˨˦ kuːn˨˦ kɯːn˨˦//kan˨˦ keːn˨˦ kiːn˨˦ kon˨˦ kuːn˨˦ kɯːn˨˦/
Passedgan gen gin gon gun gwn/kaːn˨˦ keːn˨˦ kin˨˦ koːn˨˦ kun˨˦ kɯn˨˦//kaːn˨˦ keːn˨˦ kin˨˦ koːn˨˦ kun˨˦ kɯn˨˦/
PassedAumwnz aumwnz/ʔaːu˨˦ mɯn˧˩ ʔaːu˨˦ mɯn˧˩//ʔaːu˨˦ mɯn˧˩ ʔaːu˨˦ mɯn˧˩/
Passedndaundeiq/ɗaːu˨˦ ɗei˧˥//ɗaːu˨˦ ɗei˧˥/
Passedlwgvuengz/lɯk˧ βuːŋ˧˩//lɯk˧ βuːŋ˧˩/
Failedgoengvunz/koŋ˨˦ βun˧˩//ko˨˦ ŋʷun˧˩/4
Passedsae'gva/θai˨˦ kʷa˨˦//θai˨˦ kʷa˨˦/
Faileddenyingj/teːn˨˦ jiŋ˥//te˨˦ ɲiŋ˥/4
Failedgenyi/keːn˨˦ ji˨˦//ke˨˦ ɲi˨˦/4
Passedriu'nyaen/ɣiu˨˦ ɲan˨˦//ɣiu˨˦ ɲan˨˦/
Failedfaengeiz/fan˨˦ kei˧˩//fai˨˦ ŋei˧˩/4
Passedndi'ngah/ɗi˨˦ ŋa˧//ɗi˨˦ ŋa˧/
FailedYindu/jin˨˦ tu˨˦//ji˨˦ ɗu˨˦/4
Faileddiegyouq/tiːk˧ jou˧˥//tiː˨˦ kʲou˧˥/5
Passedcoit/ɕo˨˦ ʔit˥//ɕo˨˦ ʔit˥/
Passedbangbouj/paːŋ˨˦ pou˥//paːŋ˨˦ pou˥/
Passedgyaeundei/kʲau˨˦ ɗei˨˦//kʲau˨˦ ɗei˨˦/
Passedhaicin/haːi˨˦ ɕin˨˦//haːi˨˦ ɕin˨˦/
Passeddailix/taːi˨˦ li˦˨//taːi˨˦ li˦˨/
Passedcodaeuz/ɕo˨˦ tau˧˩//ɕo˨˦ tau˧˩/
Passedsaenamz/θai˨˦ naːm˧˩//θai˨˦ naːm˧˩/
Passedsim'in/θim˨˦ ʔin˨˦//θim˨˦ ʔin˨˦/
Passedfwn'oemq/fɯn˨˦ ʔom˧˥//fɯn˨˦ ʔom˧˥/
Passedbanhaet/paːn˨˦ hat˥//paːn˨˦ hat˥/
Passeddaegdaengq/tak˧ taŋ˧˥//tak˧ taŋ˧˥/
Passedgoien/ko˨˦ ʔiːn˨˦//ko˨˦ ʔiːn˨˦/
Passedcingya/ɕin˨˦ kʲa˨˦//ɕin˨˦ kʲa˨˦/
Passedngaenzhangz/ŋan˧˩ haːŋ˧˩//ŋan˧˩ haːŋ˧˩/
Passedcungqgyang/ɕuŋ˧˥ kʲaːŋ˨˦//ɕuŋ˧˥ kʲaːŋ˨˦/
Passednditndat/ɗit˥ ɗaːt˧˥//ɗit˥ ɗaːt˧˥/
Passedndiepgyaez/ɗiːp˧˥ kʲai˧˩//ɗiːp˧˥ kʲai˧˩/
Passedndikhanh/ɗik˥ haːn˧//ɗik˥ haːn˧/

local tests = require('Module:UnitTests')
local za_conv = require('Module:za-pron')

function tests:check_syllabification(za, za_split)
	self:equals(za, za_conv.convert(za, 'IPA'), za_conv.convert(za_split, 'IPA'))
end

function tests:test_syllabification()
	self:check_syllabification('Sawndip', 'Saw ndip')
	self:check_syllabification('Cunghgoz Yinzminz Yinzhangz cib maenz', 'Cungh goz Yinz minz Yinz hangz cib maenz')
	self:check_syllabification('son mwngz hwnj max gvaq dah', 'son mwngz hwnj max gvaq dah')
	self:check_syllabification('bak daep bag daeb', 'bak daep bag daeb')
	self:check_syllabification('ga ge gi go gu gw', 'ga ge gi go gu gw')
	self:check_syllabification('gaen gen gien goen guen gwen', 'gaen gen gien goen guen gwen')
	self:check_syllabification('gan gen gin gon gun gwn', 'gan gen gin gon gun gwn')
	self:check_syllabification('Aumwnz aumwnz', 'au mwnz au mwnz')

	-- test syllable breaking

	self:check_syllabification('ndaundeiq', 'ndau ndeiq') -- _.nd
	self:check_syllabification('lwgvuengz', 'lwg vuengz') -- g.vu
	self:check_syllabification('goengvunz', 'goeng vunz') -- ng.vu
	self:check_syllabification('sae\'gva', 'sae gva') -- 'gv
	self:check_syllabification('denyingj', 'den yingj') -- n.y
	self:check_syllabification('genyi', 'gen yi') -- n.y
	self:check_syllabification('riu\'nyaen', 'riu nyaen') -- 'ny
	self:check_syllabification('faengeiz', 'faen geiz') -- n.g
	self:check_syllabification('ndi\'ngah', 'ndi ngah') -- 'ng
	self:check_syllabification('Yindu', 'yin du')
	self:check_syllabification('diegyouq', 'dieg youq')

	-- http://www.gxmyw.com.cn/wsxzw/2016/0808/1158.html

	self:check_syllabification('coit', 'co it')
	self:check_syllabification('bangbouj', 'bang bouj')
	self:check_syllabification('gyaeundei', 'gyaeu ndei')

	self:check_syllabification('haicin', 'hai cin')
	self:check_syllabification('dailix', 'dai lix')
	self:check_syllabification('codaeuz', 'co daeuz')
	self:check_syllabification('saenamz', 'sae namz')

	self:check_syllabification('sim\'in', 'sim in')
	self:check_syllabification('fwn\'oemq', 'fwn oemq')

	self:check_syllabification('banhaet', 'ban haet')
	self:check_syllabification('daegdaengq', 'daeg daengq')

	self:check_syllabification('goien', 'go ien')
	self:check_syllabification('cingya', 'cin gya')

	self:check_syllabification('ngaenzhangz', 'ngaenz hangz')
	self:check_syllabification('cungqgyang', 'cungq gyang')
	self:check_syllabification('nditndat', 'ndit ndat')
	self:check_syllabification('ndiepgyaez', 'ndiep gyaez')
	self:check_syllabification('ndikhanh', 'ndik hanh')
end

function tests:check_ipa(za, ipa)
	self:equals(za, za_conv.convert(za, 'IPA'), '/' .. ipa .. '/')
end

function tests:test_ipa()
	self:check_ipa('son mwngz hwnj max gvaq dah', 'θoːn˨˦ mɯŋ˧˩ hɯn˥ ma˦˨ kʷa˧˥ ta˧')
end

function tests:check_old(za, old)
	self:equals(za, za_conv.convert(za, 'old'), old)
end

function tests:test_old()
	self:check_old('Bauq Sawcuengh', 'Bauƽ Səɯcueŋƅ')
	self:check_old('Yinzminzgunghseq dwg yinzminz dih swnghcanj caeuq swnghhoz dih yiengh cujciz ndeu', 'Yinƨminƨguŋƅseƽ dɯg yinƨminƨ diƅ sɯŋƅcanз cəuƽ sɯŋƅhoƨ diƅ yieŋƅ cuзciƨ ƌeu')
	self:check_old('Cunghgoz Yinzminz Yinzhangz cib maenz', 'Cuŋƅgoƨ Yinƨminƨ Yinƨhaŋƨ cib mənƨ')
end
 
return tests
"https://si.wiktionary.org/w/index.php?title=Module:za-pron/testcases&oldid=55449" වෙතින් සම්ප්‍රවේශනය කෙරිණි