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>
(cherry picked from commit 67800ac5fe)
This commit is contained in:
Simon McVittie 2022-09-13 15:12:02 +01:00
parent 3e53a785de
commit fd73d1ef1b

View file

@ -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
};