Module:Sandbox/Hike395/OS coordinates/testcases

local p = require('Module:UnitTests')

local geohack='[https://tools.wmflabs.org/geohack/en/' local pagename='?pagename=Module_talk:Sandbox/Hike395/OS_coordinates/testcases' local GBloc = '53.256537528712;-1.7991023201338' local GBNEloc = '60.459656359821;-1.280627981272' local IENEloc = '52.141163081558;-9.6237020674491'

function p:test_GB local os = 'SK135733' self:preprocess_equals('', 		geohack..GBloc..'_region:GB'..pagename..' '..os..']') end

function p:test_GB_extra local os = 'SK135733' self:preprocess_equals('',		geohack..GBloc..'_scale:25000_region:GB'..pagename..' '..os..']') end

function p:test_IE local os = 'O169318' self:preprocess_equals('',		geohack..'53.323792633612;-6.2463579903284_region:IE'..pagename..' '..os..']') end

function p:test_GB_NE self:preprocess_equals('',		geohack..GBNEloc..'_region:GB'..pagename..' Crooksetter]') end

function p:test_GB_NE_extra self:preprocess_equals('',		geohack..GBNEloc..'_region:GB-SCT_scale:25000'..pagename..' Crooksetter]') end

function p:test_IE_NE self:preprocess_equals('',		geohack..IENEloc..'_region:IE'..pagename..' The Linbins]') end

function p:test_IE_NE_extra self:preprocess_equals('',       geohack..IENEloc..'_scale:25000_region:IE'..pagename..' The Linbins]') end

return p