Jump to content

Module:Vital article/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Kammerer55 (talk | contribs) at 06:34, 9 December 2023 (Created page with '-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests. local p = require('Module:UnitTests') -- Example unit test. function p:test_hello() self:preprocess_equals('{{#invoke:Example | hello}}', 'Hello, world!') end return p'). 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)
-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests.
local p = require('Module:UnitTests')

-- Example unit test.
function p:test_hello()
	self:preprocess_equals('{{#invoke:Example | hello}}', 'Hello, world!')
end

return p