[geocode-glib] lib: Compare against the correct values



commit 9c63a637ffd84d7cffe8be77d75e40871425d52f
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.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=697218

 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]