Module:Rslider/testcases

local rslider = require("Dev:Rslider").main local ScribuntoUnit = require("Module:ScribuntoUnit") local suite = ScribuntoUnit:new

function suite:test_works local frame = {args={"jumbles.png","File:QuickLogs.png","File:CatNav_example.png", "File:QuickDiff_screenshot.png","buga.png"}, getParent=function return {} end, preprocess = function (str) return str end} self:assertTrue(rslider(frame)) -- self:assertTrue(rslider("1","2","3","4","5"))

end

return suite