Module:hnm-pron/testcases

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

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

All tests passed. (refresh)

TextExpectedActualDiffers at
test_ipa:
Passedghua3/ɡua³¹//ɡua³¹/
Passedddin6 di6/ɗien⁵³⁻⁴² ti⁵³//ɗien⁵³⁻⁴² ti⁵³/
Passedgin4 hhua1 dua1/kien¹¹ ɦua³³ tua³³//kien¹¹ ɦua³³ tua³³/
Passedhhue1 li2 geh7/ɦue³³ li²² keʔ⁵³//ɦue³³ li²² keʔ⁵³/

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

function p:ipa(text, expected)
	self:equals(text, '<span class="IPA">' .. m.ipa(text) .. '</span>', '<span class="IPA">' .. expected .. '</span>')
end

function p:test_ipa()
	self:ipa('ghua3', '/ɡua³¹/')
	self:ipa('ddin6 di6', '/ɗien⁵³⁻⁴² ti⁵³/')
	self:ipa('gin4 hhua1 dua1', '/kien¹¹ ɦua³³ tua³³/')
	self:ipa('hhue1 li2 geh7', '/ɦue³³ li²² keʔ⁵³/')
end

return p