Jump to content

Template:Documentation/preload-module-testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by TheDJ (talk | contribs) at 12:13, 21 March 2013. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

-- Example Unit tests for Module:Bananas. Click talk page to run tests. local p = require('Module:UnitTests')

function p:test_hello()

   self:preprocess_equals('Script error: No such module "Bananas".', 'Hello, world!')

end

return p