-
-private
-
- ##
- # this is a test helper for rounding latlon strings to a specified precision, e.g., at a precision
- # of 5, "50.06773333333334, -14.377416666666667" will become "50.06773, -14.37742"
- def assert_latlon_equal_round(expected, actual, precision)
- assert_equal expected.split(',').map {|i| i.to_f.round(precision)}.join(', '), actual.split(',').map {|i| i.to_f.round(precision)}.join(', ')
- end