[geocode-glib/wip/nominatim: 6/8] lib: Compare against the correct values



commit 9f628c7101087e230342a43a07acbe5083f2119a
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 fa0a474..7ca0892 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]