[gnome-builder/wip/kat] Test C parse helper for ellipses
- From: Ekaterina Gerasimova <egerasimov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/kat] Test C parse helper for ellipses
- Date: Fri, 13 Feb 2015 22:27:37 +0000 (UTC)
commit 16c8a932a8c791afcc3bcba9c6e522487a4320c8
Author: Ekaterina Gerasimova <kittykat3756 gmail com>
Date: Fri Feb 13 20:50:25 2015 +0000
Test C parse helper for ellipses
tests/test-c-parse-helper.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/tests/test-c-parse-helper.c b/tests/test-c-parse-helper.c
index d12811b..ffaa978 100644
--- a/tests/test-c-parse-helper.c
+++ b/tests/test-c-parse-helper.c
@@ -36,11 +36,12 @@ test_parse_parameters1 (void)
{ "Item", 1, "a", 0 },
{ "Item", 2, "b", 0 },
{ "gpointer", 0, "u", 0 },
- { "GError", 2, "error", 0 }
+ { "GError", 2, "error", 0 },
+ { NULL, 0, NULL, 1}
};
- ret = parse_parameters ("Item *a , Item **b, gpointer u, GError ** error");
- g_assert_cmpint (4, ==, g_slist_length (ret));
+ ret = parse_parameters ("Item *a , Item **b, gpointer u, GError ** error, ...");
+ g_assert_cmpint (5, ==, g_slist_length (ret));
for (i = 0, iter = ret; i < G_N_ELEMENTS (result); i++, iter = iter->next)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]