X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ce41bc3d6d7eade229926029ece5f55869265778..326d4ecec0ca0817567912f5d45b904df4c5b054:/test/controllers/geocoder_controller_test.rb diff --git a/test/controllers/geocoder_controller_test.rb b/test/controllers/geocoder_controller_test.rb index 5b7605321..ac9905589 100644 --- a/test/controllers/geocoder_controller_test.rb +++ b/test/controllers/geocoder_controller_test.rb @@ -261,6 +261,17 @@ class GeocoderControllerTest < ActionDispatch::IntegrationTest end end + # + # Test identification of lat/lon pairs with mixed precision + def test_identify_latlon_ne_mixed_precision + latlon_check "N1 5 E15", 1.083333, 15 + latlon_check "N1 5 9 E15", 1.085833, 15 + latlon_check "N1 5 9 E1 5", 1.085833, 1.083333 + latlon_check "N15 E1 5", 15, 1.083333 + latlon_check "N15 E1 5 9", 15, 1.085833 + latlon_check "N1 5 E1 5 9", 1.083333, 1.085833 + end + # # Test identification of lat/lon pairs with values close to zero def test_identify_latlon_close_to_zero