aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-10-28 14:15:28 +0100
committerDavid Robillard <d@drobilla.net>2022-01-13 23:03:58 -0500
commit66b145eee13fc1d65edbd7b126791da29ea377bd (patch)
treed643f37567ed90a4827fa0fe2a5fe514c5e553dd /test
parent4cfc8dc3521480672938a74813ca8bf19eaee964 (diff)
downloadserd-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.c12
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;
}