Jump to content

Module:Error/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mr. Stradivarius (talk | contribs) at 18:41, 1 April 2013 (ah yes, the function name). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- Example Unit tests for [[Module:Error]]. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_error()
    self:preprocess_equals('{{#invoke:Error|error|Example error message}}', '{{Error|Example error message}}')
end

return p