[geocode-glib] test-gcglib: Don't be too strict about Moscow's coordinates



commit f464aced1981bfa253815f5d67ca56e0125435d0
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Aug 19 23:06:46 2013 +0300

    test-gcglib: Don't be too strict about Moscow's coordinates
    
    The testcase was checking if coordinates are within 0.000001 of the
    known values, which is way too accurate for a city and fails against the
    current values in OSM database.

 geocode-glib/test-gcglib.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/geocode-glib/test-gcglib.c b/geocode-glib/test-gcglib.c
index 3f9a135..045d863 100644
--- a/geocode-glib/test-gcglib.c
+++ b/geocode-glib/test-gcglib.c
@@ -350,8 +350,8 @@ test_locale (void)
        loc = geocode_place_get_location (place);
        g_assert (loc != NULL);
        g_assert_cmpstr (geocode_location_get_description (loc), ==, "Moskva, Ruská federace");
-       g_assert_cmpfloat (geocode_location_get_latitude (loc) - 55.756950, <, 0.000001);
-       g_assert_cmpfloat (geocode_location_get_longitude (loc) - 37.614971, <, 0.000001);
+       g_assert_cmpfloat (geocode_location_get_latitude (loc) - 55.756950, <, 0.005);
+       g_assert_cmpfloat (geocode_location_get_longitude (loc) - 37.614971, <, 0.005);
        print_place (place);
 
        g_list_free_full (res, (GDestroyNotify) g_object_unref);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]