Jump to content

Module:Infobox gene/testcases: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
created test case
 
added actual test (not sure that this will work)
Line 3: Line 3:


function p:test_hello()
function p:test_hello()
self:preprocess_equals('{{#invoke:Bananas | hello}}', 'Hello, world!')
self:preprocess_equals('{{#invoke:Infobox gene|getTemplateData|QID=Q414043}}')
end
end



Revision as of 04:57, 20 April 2019

-- Example Unit tests for [[Module:Bananas]]. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_hello()
	self:preprocess_equals('{{#invoke:Infobox gene|getTemplateData|QID=Q414043}}')
end

return p