Module:Map/testcases
Jump to navigation
Jump to search
CodeDiscussionEditHistoryLinksLink count Subpages:DocumentationTestsResultsSandboxLive code All modules
Lua
Documentation for this module may be created at Module:Map/testcases/doc
Code
-- Unit tests for [[Module:Map]]. Click talk page to run tests.
local p = require('Module:UnitTests')
function p:test_CalculateCornerLocations()
self:preprocess_equals('{{#invoke:Map| CalculateCornerLocations | anchorX=7772/330/6679| anchorY=553/4122/5248 | anchorDeg=52.516/48.857/48.133| nx=8150| ny = 6978 }}', '46.207414/46.610693/53.043665/52.640385')
end
return p