From a072c1fc293ab7b5e81fd5e5ea29b15941af17fe Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 19 Apr 2010 10:34:22 -0400 Subject: [PATCH] Fix up some typos in the new tests --- gio/tests/gsettings.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/gio/tests/gsettings.c b/gio/tests/gsettings.c index ead358c..ef0ba06 100644 --- a/gio/tests/gsettings.c +++ b/gio/tests/gsettings.c @@ -821,7 +821,7 @@ test_simple_binding (void) g_settings_set (settings, "int64", "x", (gint64) G_MININT64); g_object_get (obj, "int64", &i64, NULL); - g_assert_cmpint (i, ==, G_MININT64); + g_assert_cmpint (i64, ==, G_MININT64); g_settings_bind (settings, "uint64", obj, "uint64", G_SETTINGS_BIND_DEFAULT); @@ -829,9 +829,9 @@ test_simple_binding (void) g_settings_get (settings, "uint64", "t", &u64); g_assert_cmpint (u64, ==, G_MAXUINT64); - g_settings_set (settings, "int64", "t", (guint64) G_MAXINT64); - g_object_get (obj, "int64", &u64, NULL); - g_assert_cmpint (i, ==, G_MAXINT64); + g_settings_set (settings, "uint64", "t", (guint64) G_MAXINT64); + g_object_get (obj, "uint64", &u64, NULL); + g_assert_cmpint (u64, ==, G_MAXINT64); g_settings_bind (settings, "string", obj, "string", G_SETTINGS_BIND_DEFAULT); @@ -854,6 +854,12 @@ test_simple_binding (void) g_object_get (obj, "double", &d, NULL); g_assert_cmpfloat (d, ==, G_MINFLOAT); + g_object_set (obj, "double", G_MAXDOUBLE, NULL); + g_assert_cmpfloat (g_settings_get_double (settings, "double"), ==, G_MAXDOUBLE); + + g_settings_set_double (settings, "double", -G_MINDOUBLE); + g_object_get (obj, "double", &d, NULL); + g_assert_cmpfloat (d, ==, -G_MINDOUBLE); g_object_unref (obj); g_object_unref (settings); } -- 2.7.4