Module:Debug/testcases

-- Needs more tests local suite = require("Dev:ScribuntoUnit"):new local dbgModule = require("Dev:Debug") local childArgs = {[1]="childArg1",["arg2"] ="childArg2"} local parentArgs = {[1]="parentArg1",["arg2"] ="parentArg2"}

function suite.test_parentArgs local frame = dbgModule.new(childArgs) self:assertDeepEquals(frame.args,parentArgs) end

function suite.test_parentArgs local frame = dbgModule.new(nil,parentArgs) self:assertDeepEquals(frame:getParent.args,parentArgs) end

return suite