Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Fix up some typos in the new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Clasen committed Apr 19, 2010
1 parent 230038f commit a072c1f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions gio/tests/gsettings.c
Expand Up @@ -821,17 +821,17 @@ 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);

g_object_set (obj, "uint64", (guint64) G_MAXUINT64, NULL);
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);

Expand All @@ -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);
}
Expand Down

0 comments on commit a072c1f

Please sign in to comment.