Jump to content

Module:Text/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Hike395 (talk | contribs) at 19:57, 9 January 2022 (start test). 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)
local p = require('Module:UnitTests')

function p:testGetPlain()
	local function invoke(s)
		return '{{#invoke:Text|getPlain|'..s..'}}'
	end
	self:preprocess_equals(invoke('a and b'),'a and b')
end