Module:Example/testcases
< Module:Example
Jump to navigation
Jump to search
Revision as of 00:47, 25 February 2013 by blackwiki>Dcoetzee (←Created page with '-- Unit tests for Module:Bananas. Click talk page to run tests. local UnitTests = require('Module:UnitTests') local p = UnitTests.UnitTester:new() function p...')
Documentation for this module may be created at Module:Example/testcases/doc
-- Unit tests for [[Module:Bananas]]. Click talk page to run tests.
local UnitTests = require('Module:UnitTests')
local p = UnitTests.UnitTester:new()
function p.run_tests(frame) return p:run(frame) end
function p:test_hello()
self:preprocess_equals('{{#invoke:Bananas | hello}}', 'Hello, world!')
end
return p