[glib/gsettings] use new '^as' style instead of '&as' in test case
- From: Ryan Lortie <ryanl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glib/gsettings] use new '^as' style instead of '&as' in test case
- Date: Fri, 28 Aug 2009 15:14:38 +0000 (UTC)
commit 1bb01ad6b039aa41bf0cfff8df346e7ec5830e7d
Author: Ryan Lortie <desrt desrt ca>
Date: Fri Aug 28 11:14:12 2009 -0400
use new '^as' style instead of '&as' in test case
glib/tests/gvariant-varargs-strings.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/glib/tests/gvariant-varargs-strings.c b/glib/tests/gvariant-varargs-strings.c
index 46b9573..76454da 100644
--- a/glib/tests/gvariant-varargs-strings.c
+++ b/glib/tests/gvariant-varargs-strings.c
@@ -21,29 +21,29 @@ test (void)
one = g_variant_new_strv (array, -1);
two = g_variant_new_strv (array, 3);
- g_variant_get (one, "&as", &a, &num);
+ g_variant_get (one, "^as", &a, &num);
g_assert_cmpint (num, ==, 4);
check (a, "one,two,three,four");
g_strfreev (a);
- g_variant_get (two, "&as", &a, &num);
+ g_variant_get (two, "^as", &a, &num);
g_assert_cmpint (num, ==, 3);
check (a, "one,two,three");
g_strfreev (a);
- g_variant_get (one, "&a&s", &a, &num);
+ g_variant_get (one, "^a&s", &a, &num);
g_assert_cmpint (num, ==, 4);
check (a, "one,two,three,four");
g_free (a);
- g_variant_get (two, "&a&s", &a, &num);
+ g_variant_get (two, "^a&s", &a, &num);
g_assert_cmpint (num, ==, 3);
check (a, "one,two,three");
g_free (a);
g_variant_unref (one);
- g_variant_get (two, "&as", &a, &num);
+ g_variant_get (two, "^as", &a, &num);
g_variant_unref (two);
g_assert_cmpint (num, ==, 3);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]