[geocode-glib] test-gcglib: Update expected test results to match latest OSM data
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib] test-gcglib: Update expected test results to match latest OSM data
- Date: Fri, 6 Jan 2017 23:12:46 +0000 (UTC)
commit 8607f7d7bea67076a31625869a1e147830d173e3
Author: Philip Withnall <philip withnall collabora co uk>
Date: Thu Oct 13 11:54:36 2016 +0100
test-gcglib: Update expected test results to match latest OSM data
Looks like these nodes have been edited online, so the online query
results no longer matched what we expected. Update what we expect.
https://bugzilla.gnome.org/show_bug.cgi?id=756311
geocode-glib/test-gcglib.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/geocode-glib/test-gcglib.c b/geocode-glib/test-gcglib.c
index 9d7194d..fe8a8bd 100644
--- a/geocode-glib/test-gcglib.c
+++ b/geocode-glib/test-gcglib.c
@@ -204,8 +204,8 @@ test_xep (void)
place = res->data;
loc = geocode_place_get_location (place);
g_assert (loc != NULL);
- g_assert_cmpfloat (geocode_location_get_latitude (loc), ==, 51.2371416);
- g_assert_cmpfloat (geocode_location_get_longitude (loc), ==, -0.5894088);
+ g_assert_cmpfloat (geocode_location_get_latitude (loc), ==, 51.2371333);
+ g_assert_cmpfloat (geocode_location_get_longitude (loc), ==, -0.5894036);
g_object_unref (place);
g_list_free (res);
@@ -338,8 +338,8 @@ test_search_lat_long (void)
g_assert_cmpfloat (geocode_location_get_latitude (loc) - 21.803641, <, 0.000001);
g_assert_cmpfloat (geocode_location_get_longitude (loc) - -100.736292, <, 0.000001);
g_assert (bbox_includes_location (bbox, geocode_place_get_location (place)));
- g_assert_cmpstr (geocode_place_get_name (place), ==, "Santa Maria Del Rio, Santa Mar\303\255a del
Rio");
- g_assert_cmpstr (geocode_location_get_description (loc), ==, "Santa Maria Del Rio, Santa Mar\303\255a
del Rio");
+ g_assert_cmpstr (geocode_place_get_name (place), ==, "Santa Maria Del Rio, Santa Mar\303\255a del
R\303\255o");
+ g_assert_cmpstr (geocode_location_get_description (loc), ==, "Santa Maria Del Rio, Santa Mar\303\255a
del R\303\255o");
g_list_free_full (res, (GDestroyNotify) g_object_unref);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]