Module:IPA/testcases
Appearance
![]() | This is the test cases page for the module Module:IPA. Results of the test cases. |
-- 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