test/calculations_test.rb in geocoder-1.1.6 vs test/calculations_test.rb in geocoder-1.1.7

- old
+ new

@@ -36,9 +36,15 @@ assert_equal 111, Geocoder::Calculations.distance_between([0,0], [0,1], :units => :km).round la_to_ny = Geocoder::Calculations.distance_between([34.05,-118.25], [40.72,-74], :units => :km).round assert (la_to_ny - 3942).abs < 10 end + def test_distance_between_in_nautical_miles + assert_equal 60, Geocoder::Calculations.distance_between([0,0], [0,1], :units => :nm).round + la_to_ny = Geocoder::Calculations.distance_between([34.05,-118.25], [40.72,-74], :units => :nm).round + assert (la_to_ny - 2124).abs < 10 + end + # --- geographic center --- def test_geographic_center_with_arrays assert_equal [0.0, 0.5],