Module:Sandbox

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
-- For unit tests, see [[Module:Bananas/tests]]
local p = {}
 
function p.hello()
    return "Hello, world!"
end

setmetatable(p, {
    quickTests = function ()
        if type(p.hello()) ~= 'string' then return false, 'there was an error' end 
        return true
    end
} )
return p