From fd73d1ef1ba6ba4e55c07f5e65300bf40a94917f Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 13 Sep 2022 15:12:02 +0100 Subject: [PATCH] test-syntax: Exercise correctly- and incorrectly-nested structs, dicts Reproduces: https://gitlab.freedesktop.org/dbus/dbus/-/issues/418 Signed-off-by: Simon McVittie (cherry picked from commit 67800ac5febc9f15d6c4f113c758797472842ff3) --- test/syntax.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 };