Jump to content

Module:Infobox sort/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Brooklynpedestrian (talk | contribs) at 10:12, 9 June 2020 (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_desc()...'). 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_desc()
	self:preprocess_equals('{{#invoke:Example | desc | 2% Foo\n3% Bar\n8% Carrot}}', '8% Carrot<br>3% Bar<br>2%Foo')
end

return p