Jump to content

Module:IPA/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Erutuon (talk | contribs) at 20:46, 21 June 2017 (Created page with '-- Example Unit tests for Module:IPA. Click talk page to run tests. local p = require("Module:UnitTests") local function compare(input) self:preprocess_...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
-- Example Unit tests for [[Module:IPA]]. Click talk page to run tests.
local p = require("Module:UnitTests")

local function compare(input)
    self:preprocess_equals("{{IPA/sandbox|" .. input .. "}}", "{{IPA|" .. input .. "}}")
end

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

return p