You can edit almost every page by Creating an account and confirming your email.

Module:IPA/testcases

From EverybodyWiki Bios & Wiki

Documentation for this module may be created at Module:IPA/testcases/doc

-- Example Unit tests for [[Module:IPA]]. Click talk page to run tests.
local p = require("Module:UnitTests")

function p:compare(input)
    self:preprocess_equals("{{IPA/sandbox|" .. input .. "}}", mw.getCurrentFrame():preprocess("{{IPA|" .. input .. "}}"), { nowiki = true } )
end

function p:test_IPA()
	local examples = {
		"gɛt",
		"ðɪs",
	}
	
	for i, example in pairs(examples) do
		p:compare(example)
	end
end

return p

This module "IPA/testcases" is from Wikipedia if otherwise notified