Module:Calculator/testcases

local calculator = require("Module:Calculator") local ScribuntoUnit = require("Module:ScribuntoUnit") local suite = ScribuntoUnit:new

function suite:test_empty self:assertTrue(calculator.empty('')) self:assertTrue(calculator.empty(nil)) self:assertFalse(calculator.empty(123)) self:assertFalse(calculator.empty('hello')) end

function suite:test_addition -- TODO: Test error message self:assertSameResult("", "") end

function suite:test_division -- TODO: Test error message self:assertSameResult("", "") self:assertSameResult("", "") end

function suite:test_modulo -- TODO: Test error message self:assertSameResult("", "") self:assertSameResult("", "") end

function suite:test_multiplication -- TODO: Test error message self:assertSameResult("", "") end

function suite:test_subtraction -- TODO: Test error message self:assertSameResult("", "") self:assertSameResult("", "") end

return suite