Difference between revisions of "Module:Example/testcases"
Jump to navigation
Jump to search
blackwiki>Dcoetzee m (Dcoetzee moved page Module:Bananas/test to Module:Bananas/tests without leaving a redirect) |
blackwiki>Dcoetzee |
||
Line 1: | Line 1: | ||
-- Unit tests for [[Module:Bananas]]. Click talk page to run tests. | -- Unit tests for [[Module:Bananas]]. Click talk page to run tests. | ||
− | local | + | local p = require('Module:UnitTests') |
− | |||
− | |||
function p:test_hello() | function p:test_hello() |
Revision as of 01:01, 25 February 2013
Documentation for this module may be created at Module:Example/testcases/doc
-- Unit tests for [[Module:Bananas]]. Click talk page to run tests.
local p = require('Module:UnitTests')
function p:test_hello()
self:preprocess_equals('{{#invoke:Bananas | hello}}', 'Hello, world!')
end
return p