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