From bdfb8d0b4eed210e100938514d4bdd9dab0545cf Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 17 Oct 2019 13:42:35 +0200 Subject: Add test case for nested anonymous nodes --- tests/sratom_test.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/sratom_test.c b/tests/sratom_test.c index 466a1e1..1449774 100644 --- a/tests/sratom_test.c +++ b/tests/sratom_test.c @@ -220,10 +220,14 @@ test(SerdEnv* env, bool top_level, bool pretty_numbers) lv2_atom_forge_atom(&forge, sizeof(blob_buf), blob_type); lv2_atom_forge_write(&forge, blob_buf, sizeof(blob_buf)); - // eg_blank = [ a ] + // eg_blank = [ a eg:Object ; blank [ a eg:Object] ] lv2_atom_forge_key(&forge, eg_blank); LV2_Atom_Forge_Frame blank_frame; lv2_atom_forge_object(&forge, &blank_frame, 0, eg_Object); + lv2_atom_forge_key(&forge, eg_blank); + LV2_Atom_Forge_Frame sub_blank_frame; + lv2_atom_forge_object(&forge, &sub_blank_frame, 0, eg_Object); + lv2_atom_forge_pop(&forge, &sub_blank_frame); lv2_atom_forge_pop(&forge, &blank_frame); // eg_tuple = "foo",true -- cgit v1.2.1