summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2022-09-13 15:12:02 +0100
committerSimon McVittie <smcv@collabora.com>2022-10-05 10:24:04 +0100
commit67800ac5febc9f15d6c4f113c758797472842ff3 (patch)
treecccbdd3499c7bdceab72f73791bf17694a13362c /test
parent9d07424e9011e3bbe535e83043d335f3093d2916 (diff)
test-syntax: Exercise correctly- and incorrectly-nested structs, dicts
Reproduces: https://gitlab.freedesktop.org/dbus/dbus/-/issues/418 Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'test')
-rw-r--r--test/syntax.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/syntax.c b/test/syntax.c
index 17fcba4e..fbfc8672 100644
--- a/test/syntax.c
+++ b/test/syntax.c
@@ -155,12 +155,22 @@ const char * const invalid_bus_names[] = {
const char * const valid_signatures[] = {
"",
"a{sv}",
+ "a{s(i)}",
+ "a(sa{ii})",
NULL
};
const char * const invalid_signatures[] = {
"a",
"a{s_}",
+ "a{s(i}",
+ "a{s(i})",
+ "a{s(i)",
+ "a{s(i})",
+ "a(sa{ii)",
+ "a(sa{ii)}",
+ ")",
+ "}",
NULL
};