Difference between revisions of "Module:Documentation/testcases"

From VistApedia
Jump to: navigation, search
(Created page with "-- Example Unit tests for Module:Bananas. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_hello() self:preprocess_equals('{{#invok...")
 
(No difference)

Latest revision as of 18:05, 28 March 2019

Documentation for this module may be created at Module:Documentation/testcases/doc

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