Module:PopulationFromWikidata/testcases explained

--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. -- We want to specify the expected output to compare to the actual. But for now we're not using this comparison, we're just checking the output manually.local p = require("module:UnitTests")function p:test1 self:preprocess_equals('', )-- self:preprocess_equals('', ,)-- self:preprocess_equals('', '

\n* 2,051 (Suburbs and Localities 2021)

') self:preprocess_equals('', ) self:preprocess_equals('', ) self:preprocess_equals('', ) self:preprocess_equals('', ) self:preprocess_equals('', ) self:preprocess_equals('', ) self:preprocess_equals('', ) end

return p