Module:LuaCall/testcases

local ScribuntoUnit = require('Module:ScribuntoUnit') local suite = ScribuntoUnit:new

function suite:testmain self:assertResultEquals(		[=[_test&#x26;nbsp;test&#x26;nbsp;test&#x26;nbsp;test&#x26;nbsp;test&#x26;nbsp;test&#x26;nbsp;test&#x26;nbsp;]=],		[=[]=],		"&#x3c;code&#x3e;"..mw.text.nowiki([=[]=].."&#x3c;/code&#x3e;")) self:assertResultEquals(		[=[_I. c.a.n.'t. g.e.t. n.o. s.a.t.i.s.f.a.c.t.i.o.n.]=],		[=[]=],		[=[&#x3c;code&#x3e;&#x3c;nowiki&#x3e;&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e;]=]) self:assertResultEquals(		[=[_22]=],		[=[]=],		[=[&#x3c;code&#x3e;&#x3c;nowiki&#x3e;&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e;]=]) self:assertResultEquals(		[=[_2]=],		[=[]=],		[=[&#x3c;code&#x3e;&#x3c;nowiki&#x3e;&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e;]=]) self:assertResultEquals(		[=[_1]=],		[=[]=],		[=[&#x3c;code&#x3e;&#x3c;nowiki&#x3e;&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e;]=]) self:assertResultEquals(		[=[_0.4512]=],		[=[]=],		[=[&#x3c;code&#x3e;&#x3c;nowiki&#x3e;&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e;]=]) self:assertResultEquals(		[=[_181]=],		[=[]=],		[=[&#x3c;code&#x3e;&#x3c;nowiki&#x3e;&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e;]=]) self:assertResultEquals(		[=[_bc]=],		[=[]=],		[=[For comparison with n:Template:Evalx: &#x3c;code&#x3e;&#x3c;nowiki&#x3e;&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e;]=]) end

return suite