Skip to content
Snippets Groups Projects
Commit 4539d90d authored by Alex Reisner's avatar Alex Reisner
Browse files

Add non-trivial distance_between test.

parent f656f3c4
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,8 @@ class GeocoderTest < Test::Unit::TestCase ...@@ -21,6 +21,8 @@ class GeocoderTest < Test::Unit::TestCase
def test_distance_between def test_distance_between
assert_equal 69, Geocoder::Calculations.distance_between(0,0, 0,1).round assert_equal 69, Geocoder::Calculations.distance_between(0,0, 0,1).round
la_to_ny = Geocoder::Calculations.distance_between(34.05,-118.25, 40.72,-74).round
assert (la_to_ny - 2444).abs < 10
end end
def test_compass_points def test_compass_points
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment