Module:sandbox/cu-pronunciation/testcases

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


local tests = require('Module:UnitTests')
local m_IPA = require('Module:cu-pronunciation/sandbox')

local OCS = require('Module:languages').getByCode("cu")
local Cyrillic = require('Module:scripts').getByCode("Cyrl")

local function link(term)
	return require("Module:links").full_link{ term = term, lang = OCS, sc = Cyrillic}
end

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

function tests:check_output(term, expected)
	tests:equals(
		term,
		expected,
		m_IPA.toIPA(term),
		{ display = tag_IPA }
	)
end

function tests:test_all()
	list = {
		{ "сло̏во", "s̪ɫ̪ɔ̟˦vɔ̟˨"},
		{ "дальчьнъ", "dalɪt͡ʃɪnʊ̆"},
		{ "йгрь", "jɪgrɪ"},
		{ "ѿкаꙁъ", "ɔtʊ̆kazʊ̆"},
		{ "югъ", "juɡʊ"},
		{ "мєждоу", "mɛʒdu"},
		{ "съчѧстьнъ", "sʊ̆t͡ʃɛ̃stɪnʊ̆"}
	}
	self:iterate(list, "check_output")
end
		
return tests