Module:Type in location/testcases

local p = require('Module:UnitTests')

function p:testMain -- empty self:preprocess_equals(,		) -- just type self:preprocess_equals('',		'Airport') -- junk type self:preprocess_equals(,		) -- just location self:preprocess_equals(,		) -- type and location self:preprocess_equals('',		'Airport in London') -- type and wlink location self:preprocess_equals('',		'Airport in Dayton, Ohio') -- type and complex location self:preprocess_equals('',		'Radio station in Louisiana, United States') -- type and complex location with piping self:preprocess_equals('',		'Radio station in Natchitoches, Louisiana') -- type and very messy location self:preprocess_equals('',		'Radio station in Dayton, Ohio') -- type and location with flag self:preprocess_equals('',		'Shopping mall in Gateshead, United Kingdom') -- type and location with postal code self:preprocess_equals('',		'Historic house museum in West Yorkshire, England') -- check pattern succeeds self:preprocess_equals('',		'Natural history museum in Philadelphia') -- check pattern fails self:preprocess_equals(,		) -- test lc matching self:preprocess_equals('',		'Power plant cooling/recreational Reservoir in Texas, United States') -- test invalidadd self:preprocess_equals('',		'Geothermal body of water in Waiotapu, North Island') -- ubl location self:preprocess_equals('',        'Bridge') end

function p:testSandbox -- empty self:preprocess_equals(,		) -- just type self:preprocess_equals('',		'Airport') -- junk type self:preprocess_equals(,		) -- just location self:preprocess_equals(,		) -- type and location self:preprocess_equals('',		'Airport in London') -- type and wlink location self:preprocess_equals('',		'Airport in Dayton, Ohio') -- type and complex location self:preprocess_equals('',		'Radio station in Louisiana, United States') -- type and complex location with piping self:preprocess_equals('',		'Radio station in Natchitoches, Louisiana') -- type and very messy location self:preprocess_equals('',		'Radio station in Dayton, Ohio') -- type and location with flag self:preprocess_equals('',		'Shopping mall in Gateshead, United Kingdom') -- type and location with postal code self:preprocess_equals('',		'Historic house museum in West Yorkshire, England') -- check pattern succeeds self:preprocess_equals('',		'Natural history museum in Philadelphia') -- check pattern fails self:preprocess_equals(,		) -- test lc matching self:preprocess_equals('',		'Power plant cooling/recreational Reservoir in Texas, United States') -- test invalidadd self:preprocess_equals('',		'Geothermal body of water in Waiotapu, North Island') -- ubl location self:preprocess_equals('',        'Bridge') end

return p