Module:mnp-pron/testcases

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