Module:IPA symbol/sandbox/testcases
Appearance
![]() | This is the test cases page for the module Module:IPA symbol/sandbox. Results of the test cases. |
-- Example Unit tests for [[Module:IPAsymbol]]. Click talk page to run tests.
local p = require('Module:UnitTests')
function p:test_latinalphabet()
self:preprocess_equals('{{#invoke:IPAsymbol/sandbox|main|p}}', '{{IPAsym|p}}')
self:preprocess_equals_preprocess('{{#invoke:IPAsymbol/sandbox|main|p}}', '{{IPAsym|p}}')
end
function p:test_IPA_extremes()
self:preprocess_equals('{{#invoke:IPAsymbol/sandbox|main|}}', '{{IPAsym|}}')
self:preprocess_equals('{{#invoke:IPAsymbol/sandbox|main}}', '{{IPAsym}}')
self:preprocess_equals('{{#invoke:IPAsymbol/sandbox|xyz}}', '{{IPAsym|xyz}}')
end
function p:test_erroroptions()
self:preprocess_equals('{{#invoke:IPAsymbol/sandbox|main|m}}', 'm')
end
--[[
function p:IPA_latinalphabet()
self:preprocess_equals('{{#invoke:IPAsymbol/sandbox|main|m,}}', 'p')
end
function p:IPA_symbols()
self:preprocess_equals('{{#invoke:IPAsymbol/sandbox|main|m,}}', 'm')
end
--]]
return p