diff options
author | David Robillard <d@drobilla.net> | 2018-10-28 14:15:28 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-13 23:03:58 -0500 |
commit | 66b145eee13fc1d65edbd7b126791da29ea377bd (patch) | |
tree | d643f37567ed90a4827fa0fe2a5fe514c5e553dd /test | |
parent | 4cfc8dc3521480672938a74813ca8bf19eaee964 (diff) | |
download | serd-66b145eee13fc1d65edbd7b126791da29ea377bd.tar.gz serd-66b145eee13fc1d65edbd7b126791da29ea377bd.tar.bz2 serd-66b145eee13fc1d65edbd7b126791da29ea377bd.zip |
Cache commonly used nodes in the world
Diffstat (limited to 'test')
-rw-r--r-- | test/test_world.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test_world.c b/test/test_world.c index a7728037..8045d1bf 100644 --- a/test/test_world.c +++ b/test/test_world.c @@ -38,10 +38,22 @@ test_get_blank(void) serd_world_free(world); } +static void +test_nodes(void) +{ + SerdWorld* const world = serd_world_new(); + SerdNodes* const nodes = serd_world_nodes(world); + + assert(serd_nodes_size(nodes) > 0u); + + serd_world_free(world); +} + int main(void) { test_get_blank(); + test_nodes(); return 0; } |