Module:ky-IPA/testcases

local tests = require("Module:UnitTests") local m_ky_ipa = require("Module:ky-IPA")

function tests:check_phonetic(word, expected, respelling) self:equals(		"" .. word .. "",		m_ky_ipa.phonetic(respelling or word),		expected,		{ display = tag_IPA }	) end

function tests:test_pron local examples = { { "таене", "tɑjene" }, { "Енисей", "jenisej" }, { "кыргыз", "qɯrʁɯz" },

}	self:iterate(examples, "check_phonetic") end

return tests