Module:User:Malku H₂n̥rés/lang-IPA/testcases

local tests = require("Module:UnitTests") local m_IPA = require("Module:User:Malku H₂n̥rés/lang-IPA") local lang = require("Module:languages").getByCode("akk")

local function tag_IPA(IPA) return ' ' .. IPA .. ' ' end local options = {display = tag_IPA}

function tests:check_pron(word, expected) self:equals(		require("Module:links").full_link({term = word, lang = lang}, nil, true), m_IPA.pronunciation_phonemic(word), expected, options	) end

function tests:test_pron local examples = { {"start", "pronunciation"}, {"word", "ˈend"} }	tests:iterate(examples, "check_pron") end

return tests