[gnome-builder] auto-indent: track c-parse-helper changes in unit tests.
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] auto-indent: track c-parse-helper changes in unit tests.
- Date: Sat, 20 Sep 2014 22:12:37 +0000 (UTC)
commit 29abe168958e7e30498b9f78b0d3f6a9d64876d4
Author: Christian Hergert <christian hergert me>
Date: Sat Sep 20 15:12:07 2014 -0700
auto-indent: track c-parse-helper changes in unit tests.
tests/test-c-parse-helper.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/tests/test-c-parse-helper.c b/tests/test-c-parse-helper.c
index 48f7f31..95365ea 100644
--- a/tests/test-c-parse-helper.c
+++ b/tests/test-c-parse-helper.c
@@ -31,25 +31,29 @@ test_parse_parameters1 (void)
iter = ret;
p = iter->data;
- g_assert_cmpstr (p->type, ==, "Item *");
+ g_assert_cmpstr (p->type, ==, "Item");
+ g_assert_cmpint (p->n_star, ==, 1);
g_assert_cmpstr (p->name, ==, "a");
g_assert_cmpint (p->ellipsis, ==, 0);
iter = iter->next;
p = iter->data;
- g_assert_cmpstr (p->type, ==, "Item **");
+ g_assert_cmpstr (p->type, ==, "Item");
+ g_assert_cmpint (p->n_star, ==, 2);
g_assert_cmpstr (p->name, ==, "b");
g_assert_cmpint (p->ellipsis, ==, 0);
iter = iter->next;
p = iter->data;
g_assert_cmpstr (p->type, ==, "gpointer");
+ g_assert_cmpint (p->n_star, ==, 0);
g_assert_cmpstr (p->name, ==, "u");
g_assert_cmpint (p->ellipsis, ==, 0);
iter = iter->next;
p = iter->data;
- g_assert_cmpstr (p->type, ==, "GError **");
+ g_assert_cmpstr (p->type, ==, "GError");
+ g_assert_cmpint (p->n_star, ==, 2);
g_assert_cmpstr (p->name, ==, "error");
g_assert_cmpint (p->ellipsis, ==, 0);
iter = iter->next;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]