Module:Template test case: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Don't export the table and nowiki functions. At the moment the Lua interfaces don't make much sense, and rewriting the module to include nice Lua interfaces would probably be a lot of wasted work, as Lua modules will generally use Lua-based test cases.)
(fix function name)
Line 456: Line 456:
function TableInvocation:getInvocation(template)
function TableInvocation:getInvocation(template)
if self.code then
if self.code then
local nowikiObj = NowikiInvocation(self.code, self.cfg)
local nowikiObj = NowikiInvocation.new(self.code, self.cfg)
return nowikiObj:getInvocation(template)
return nowikiObj:getInvocation(template)
else
else