Module:User:Thadh/ltg-IPA/testcases

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

This is a private module sandbox of Thadh, for their own experimentation. Items in this module may be added and removed at Thadh's discretion; do not rely on this module's stability.


local tests = require("Module:UnitTests")
local m_IPA = require("Module:User:Thadh/ltg-IPA")
local lang = require("Module:languages").getByCode("ltg")

local function tag_IPA(IPA) return '<span class="IPA">' .. IPA .. '</span>' end
local options = {display = tag_IPA}

function tests:check_pron(word, expected)
	self:equals(
		m_IPA.pronunciation_phonemic(word), expected, options
	)
end

function tests:test_pron()
	local examples = {
		{"apdūmeigs", "abduːmʲæi̯ks"},
		{"acis", "at͡sʲisʲ"},
	}
	tests:iterate(examples, "check_pron")
end

return tests