[geocode-glib] test-gcglib: Fix test for "Grand Canyon" from Europe



commit 39b3cfc7822f03f9aba4d604dcf48b40605f56cd
Author: Bastien Nocera <hadess hadess net>
Date:   Sun May 17 14:55:10 2015 +0200

    test-gcglib: Fix test for "Grand Canyon" from Europe
    
    First hit for "Grand Canyon" is "Grand Canyon, Ukraine":
    http://www.openstreetmap.org/relation/1493795
    instead of the North American one.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=737857

 geocode-glib/test-gcglib.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/geocode-glib/test-gcglib.c b/geocode-glib/test-gcglib.c
index 757638e..9833dd1 100644
--- a/geocode-glib/test-gcglib.c
+++ b/geocode-glib/test-gcglib.c
@@ -361,7 +361,7 @@ test_osm_type (void)
        } types[] = {
                { "Drottning Christinas väg", GEOCODE_PLACE_OSM_TYPE_WAY },
                { "North dakota", GEOCODE_PLACE_OSM_TYPE_RELATION },
-               { "Grand canyon", GEOCODE_PLACE_OSM_TYPE_NODE }
+               { "Grand canyon, USA", GEOCODE_PLACE_OSM_TYPE_NODE }
        };
        for (i = 0; i < G_N_ELEMENTS (types); i++) {
                object = geocode_forward_new_for_string (types[i].search_string);
@@ -374,7 +374,8 @@ test_osm_type (void)
                g_object_unref (object);
 
                place = res->data;
-               g_assert (geocode_place_get_osm_type (place) == types[i].osm_type);
+               g_test_message ("Location: %s", types[i].search_string);
+               g_assert_cmpint (geocode_place_get_osm_type (place), ==, types[i].osm_type);
                g_list_free_full (res, (GDestroyNotify) g_object_unref);
        }
 }


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