Module:User:Geographyinitiative/tongyong/testcases

Hello, you have come here looking for the meaning of the word Module:User:Geographyinitiative/tongyong/testcases. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:User:Geographyinitiative/tongyong/testcases, but we will also tell you about its etymology, its characteristics and you will know how to say Module:User:Geographyinitiative/tongyong/testcases in singular and plural. Everything you need to know about the word Module:User:Geographyinitiative/tongyong/testcases you have here. The definition of the word Module:User:Geographyinitiative/tongyong/testcases will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:User:Geographyinitiative/tongyong/testcases, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.


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