diff options
author | David Robillard <d@drobilla.net> | 2019-10-17 13:42:35 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-10-17 13:42:35 +0200 |
commit | bdfb8d0b4eed210e100938514d4bdd9dab0545cf (patch) | |
tree | 00fd6dbad876c5abaa205745daa63b90f007ca4c /tests | |
parent | 3d4f18131bf24c6e35929bf58a8b0f5c4e2f1141 (diff) | |
download | sratom-bdfb8d0b4eed210e100938514d4bdd9dab0545cf.tar.gz sratom-bdfb8d0b4eed210e100938514d4bdd9dab0545cf.tar.bz2 sratom-bdfb8d0b4eed210e100938514d4bdd9dab0545cf.zip |
Add test case for nested anonymous nodes
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sratom_test.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 <http://example.org/Object> ] + // 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 |