[glib/GVariantType] strengthen a check in GVariantType test
- From: Ryan Lortie <ryanl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glib/GVariantType] strengthen a check in GVariantType test
- Date: Sat, 23 Jan 2010 01:16:16 +0000 (UTC)
commit 693ac0e38ab37ce2023092d8538c584e96efb1dc
Author: Ryan Lortie <desrt desrt ca>
Date: Fri Jan 22 20:15:58 2010 -0500
strengthen a check in GVariantType test
glib/tests/gvarianttype.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/tests/gvarianttype.c b/glib/tests/gvarianttype.c
index c354e74..cead2e3 100644
--- a/glib/tests/gvarianttype.c
+++ b/glib/tests/gvarianttype.c
@@ -545,8 +545,8 @@ subtype_check (const gchar *type_string,
/* this type should be a subtype of each parent type */
g_assert (g_variant_type_is_subtype_of (ts.type, node->type));
- /* but it should not be a supertype unless it is equal */
- g_assert (!g_variant_type_is_subtype_of (node->type, ts.type) ||
+ /* it should only be a supertype when it is exactly equal */
+ g_assert (g_variant_type_is_subtype_of (node->type, ts.type) ==
g_variant_type_equal (ts.type, node->type));
depth++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]