[geocode-glib/wip/nominatim: 13/14] lib: Compare against the correct values
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib/wip/nominatim: 13/14] lib: Compare against the correct values
- Date: Fri, 26 Jul 2013 00:27:42 +0000 (UTC)
commit 3451ce738d2281e3d5b6c8c381e9fba6bf1fdcd7
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Jul 24 22:35:09 2013 +0300
lib: Compare against the correct values
We were comparing latitude to longitude and viceversa in a few
testcases.
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 2878fb5..0f44075 100644
--- a/geocode-glib/test-gcglib.c
+++ b/geocode-glib/test-gcglib.c
@@ -177,8 +177,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), ==, -0.589669);
- g_assert_cmpfloat (geocode_location_get_longitude (loc), ==, 51.237070);
+ g_assert_cmpfloat (geocode_location_get_latitude (loc), ==, 51.237070);
+ g_assert_cmpfloat (geocode_location_get_longitude (loc), ==, -0.589669);
g_object_unref (place);
g_list_free (res);
@@ -209,8 +209,8 @@ test_pub (void)
loc = geocode_place_get_location (place);
g_assert (loc != NULL);
- g_assert_cmpfloat (geocode_location_get_latitude (loc), ==, -0.589669);
- g_assert_cmpfloat (geocode_location_get_longitude (loc), ==, 51.237070);
+ g_assert_cmpfloat (geocode_location_get_latitude (loc), ==, 51.237070);
+ g_assert_cmpfloat (geocode_location_get_longitude (loc), ==, -0.589669);
g_object_unref (place);
g_list_free (res);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]