Jump to content

Module:PopulationFromWikidata/testcases: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Created page with '--Test cases for the sandbox version of the PopulationFromWikidata module. This is a Lua module for testing the sandbox module. -- we inherit p from another module -- UnitTests is a system of testing modules. We'll expose the outputs of tests. local p = require("module:UnitTests") function p:test1() self:preprocess_equals('{{#invoke:PopulationFromWikidata|ListForInfobox}}', '' ) end return p'
(No difference)

Revision as of 03:47, 11 July 2022

--Test cases for the sandbox version of the PopulationFromWikidata module. This is a Lua module for testing the sandbox module.

-- we inherit p from another module
-- UnitTests is a system of testing modules. We'll expose the outputs of tests. 
local p = require("module:UnitTests")
function p:test1()
	self:preprocess_equals('{{#invoke:PopulationFromWikidata|ListForInfobox}}', ''
		
		
		)
end


return p