Module:nan-pron-Leizhou/testcases

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

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

function p:test_ipa self:ipa('xieng1 ku1', 'ɕieŋ³⁵⁻³³ kʰu³⁵') self:ipa('soi1 tao5', 'sɔi³⁵⁻³³ tʰau²²') self:ipa('geu1 so2', 'kɛu³⁵⁻³³ sɔ³¹') self:ipa('su1 bhang6', 'su³⁵⁻³³ baŋ³³') self:ipa('xieng1 xi3', 'ɕieŋ³⁵⁻³³ ɕi²¹') self:ipa('gam1 lu7', 'kam³⁵⁻³³ lu⁵⁵') self:ipa('sua1 dib4', 'sua³⁵⁻³³ tip⁵') self:ipa('se1 ieg8', 'sɛ³⁵⁻³³ iek²') self:ipa('bi1 qio6 gi5', 'pi³⁵⁻³³ t͡ɕʰiɔ³³ ki²²') self:ipa('bi2# ka1 ue6 qiu2', 'pi³¹ kʰa³⁵⁻³³ uɛ³³ t͡ɕʰiu³¹') self:ipa('bi3 liang5 bi3 zua5', 'pi²¹⁻⁵⁵ liaŋ²² pi²¹⁻⁵⁵ t͡sua²²') self:ipa('bi3 liang5', 'pi²¹⁻⁵⁵ liaŋ²²') self:ipa('pi1# gao1 gao1', 'pʰi³⁵ kau³⁵⁻³³ kau³⁵') self:ipa('pi1 kang1 mo5', 'pʰi³⁵⁻³³ kʰaŋ³⁵⁻³³ mɔ²²') end

return p