Template:Documentation/preload-module-testcases

From blackwiki
< Template:Documentation
Revision as of 12:13, 21 March 2013 by test>TheDJ
Jump to navigation Jump to search

-- 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