This is the unit-testing module for Module:mnp-pron.

All tests passed. (refresh)

TextExpectedActualDiffers at
test_ipa:
Passedgṳ̌ing-só̤ng/kyiŋ²¹ sɔŋ⁵⁴//kyiŋ²¹ sɔŋ⁵⁴/
Passedgṳ̌ing-só̤ng/gṳ̌ing-só̤ng/kyiŋ²¹ sɔŋ⁵⁴/, /kyiŋ²¹ sɔŋ⁵⁴//kyiŋ²¹ sɔŋ⁵⁴/, /kyiŋ²¹ sɔŋ⁵⁴/
Passedgṳ̌ing só̤ng/kyiŋ²¹ sɔŋ⁵⁴//kyiŋ²¹ sɔŋ⁵⁴/
Passedmì-tê/mi⁴² tʰe³³//mi⁴² tʰe³³/
Passedngṳè/ŋyɛ⁴²//ŋyɛ⁴²/
Passedsáing-siu̿/saiŋ⁵⁴ siu³³//saiŋ⁵⁴ siu³³/
Passedce̿ng/t͡seiŋ³³//t͡seiŋ³³/



local p = require('Module:UnitTests')
local m = require('Module:mnp-pron')

function p:ipa(text, expected)
	self:equals(text, m.ipa(text), expected)
end

function p:test_ipa()
	self:ipa('gṳ̌ing-só̤ng', '/kyiŋ²¹ sɔŋ⁵⁴/')
	self:ipa('gṳ̌ing-só̤ng/gṳ̌ing-só̤ng', '/kyiŋ²¹ sɔŋ⁵⁴/, /kyiŋ²¹ sɔŋ⁵⁴/')
	self:ipa('gṳ̌ing só̤ng', '/kyiŋ²¹ sɔŋ⁵⁴/')
	self:ipa('mì-tê', '/mi⁴² tʰe³³/')
	self:ipa('ngṳè', '/ŋyɛ⁴²/')
	self:ipa('sáing-siu̿', '/saiŋ⁵⁴ siu³³/')
	self:ipa('ce̿ng', '/t͡seiŋ³³/')
end

return p
"https://si.wiktionary.org/w/index.php?title=Module:mnp-pron/testcases&oldid=44626" වෙතින් සම්ප්‍රවේශනය කෙරිණි