-- Unit tests for . Click talk page to run tests.
local anchor = require('Module:Anchor') -- the module to be testedlocal ScribuntoUnit = require('Module:ScribuntoUnit')local suite = ScribuntoUnit:new
function suite:testmain self:assertResultEquals('
', '') self:assertResultEquals('', '') self:assertResultEquals('', '') self:assertResultEquals('', '') self:assertResultEquals('', '')endfunction suite:test_main self:assertResultEquals('
', anchor._main('foo')) self:assertResultEquals('', anchor._main('foo', 'bar'))endfunction suite:testAgainstTemplate self:assertSameResult('', '') self:assertSameResult('', '') self:assertSameResult('', '')end
return suite