Jump to content

Module:Documentation/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mr. Stradivarius (talk | contribs) at 15:00, 12 January 2014 (create with some tests for the message function). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
-- Test cases page for [[Module:Documentation]]. See talk page to run tests.

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

function suite:testMessage()
	self:assertEquals('sandbox', doc.message('sandboxSubpage', 'string'))
	self:assertEquals('Subpages of this foobar', doc.message('subpagesLinkDisplay', 'string', {'foobar'}))
end

return suite