Module:Bananas/testcases

Documentation icon Module documentation[view] [change] [history] [refresh]

This is an example Lua module that has a single function.

  • {{#invoke:Bananas|hello}} → Hello, world!
-- 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