[gnome-builder/wip/kat: 2/2] Test C parse helper for ellipses
- From: Ekaterina Gerasimova <egerasimov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/kat: 2/2] Test C parse helper for ellipses
- Date: Fri, 13 Feb 2015 22:13:17 +0000 (UTC)
commit a1e7dbe5b06a51754c36c7fc154d682eaefd638d
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 | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/tests/test-c-parse-helper.c b/tests/test-c-parse-helper.c
index c2d77f7..c714e07 100644
--- a/tests/test-c-parse-helper.c
+++ b/tests/test-c-parse-helper.c
@@ -36,10 +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 },
+ { "", 0, "", 1}
}
- ret = parse_parameters ("Item *a , Item **b, gpointer u, GError ** error");
+ ret = parse_parameters ("Item *a , Item **b, gpointer u, GError ** error,
+ ...");
g_assert_cmpint (4, ==, 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]