3 class OsmTest < ActiveSupport::TestCase
5 proj = OSM::Mercator.new(0, 0, 1, 1, 100, 200)
6 assert_in_delta(50, proj.x(0.5), 0.01)
7 assert_in_delta(100, proj.y(0.5), 0.01)
10 def test_mercator_collapsed_bbox
11 proj = OSM::Mercator.new(0, 0, 0, 0, 100, 200)
12 assert_in_delta(50, proj.x(0), 0.01)
13 assert_in_delta(100, proj.y(0), 0.01)