Module:User:Geographyinitiative/tongyong/testcases

local p = require('Module:UnitTests') local m_pron = require('Module:User:Geographyinitiative/tongyong')

function p:tongyong(text, expected) self:equals(text, m_pron.py_tongyong(text), expected) end

function p:test_tongyong local examples = { { 'qīnghǎi','cinghǎi' }, { 'fújiàn','fwujiann' }, { 'guǎngdōng','goangdong' }, { 'héběi','herbeei' }, { 'húnán','hwunan' }, { 'zhèjiāng','jehjiang' }, { 'nèiménggǔ','neymengguu' }, { 'shǎnxī','shaanshi' }, { 'xīnjiāng','shinjiang' }, { 'xīzàng','shitzanq' }, { 'sìchuān','syhchuan' }, }	self:iterate(examples, 'tongyong') end