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

2 of 2 tests failed. (refresh)

TextExpectedActualDiffers at
test_pron:
Failedstartpronunciationstart1
Failedwordˈendword1

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 '<span class="IPA">' .. IPA .. '</span>' 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