diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2010-06-18 15:30:55 +1000 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2010-06-22 14:36:29 +1000 |
commit | 66eb7142b048c1c08cbbb740a4bb9ab06c9ed20a (patch) | |
tree | 9e2ee275d1088d350eb111d38d57763a5e781b6f | |
parent | 074192b89c6afcdd7f062f03989972e44334b8bf (diff) | |
download | gobject-introspection-66eb7142b048c1c08cbbb740a4bb9ab06c9ed20a.tar.gz |
Add tests to Everything for items stored in GValues
-rw-r--r-- | gir/everything.c | 23 | ||||
-rw-r--r-- | gir/everything.h | 3 |
2 files changed, 26 insertions, 0 deletions
diff --git a/gir/everything.c b/gir/everything.c index f8baada6..690dc733 100644 --- a/gir/everything.c +++ b/gir/everything.c @@ -2354,3 +2354,26 @@ test_torture_signature_2 (int x, notify (user_data); } +GValue * +test_date_in_gvalue (void) +{ + GValue *value = g_new0 (GValue, 1); + GDate *date = g_date_new_dmy (5, 12, 1984); + + g_value_init (value, G_TYPE_DATE); + g_value_take_boxed (value, date); + + return value; +} + +GValue * +test_strv_in_gvalue (void) +{ + GValue *value = g_new0 (GValue, 1); + const char *strv[] = { "one", "two", "three", NULL }; + + g_value_init (value, G_TYPE_STRV); + g_value_set_boxed (value, strv); + + return value; +} diff --git a/gir/everything.h b/gir/everything.h index 3f89e226..8a8b1e0d 100644 --- a/gir/everything.h +++ b/gir/everything.h @@ -441,4 +441,7 @@ void test_torture_signature_2 (int x, int *q, guint m); +GValue *test_date_in_gvalue (void); +GValue *test_strv_in_gvalue (void); + #endif /* __GITESTTYPES_H__ */ |