diff options
author | David Robillard <d@drobilla.net> | 2023-09-10 16:51:44 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | 098b744bafe57d95bba844190d9a6f1a9db33d4c (patch) | |
tree | 9807d9240914c5ddc4954a9e2b23dea11e2a2d69 /test/test_env.c | |
parent | d4bfea4ad74f8a737dad143f6f136aff499cb23f (diff) | |
download | serd-098b744bafe57d95bba844190d9a6f1a9db33d4c.tar.gz serd-098b744bafe57d95bba844190d9a6f1a9db33d4c.tar.bz2 serd-098b744bafe57d95bba844190d9a6f1a9db33d4c.zip |
Use SerdNodes in Env implementation
Diffstat (limited to 'test/test_env.c')
-rw-r--r-- | test/test_env.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_env.c b/test/test_env.c index eec8a2ef..cc3a524f 100644 --- a/test/test_env.c +++ b/test/test_env.c @@ -45,12 +45,12 @@ test_copy_failed_alloc(void) SerdFailingAllocator allocator = serd_failing_allocator(); + // Create a simple env SerdEnv* const env = serd_env_new(&allocator.base, serd_empty_string()); - assert(!serd_env_set_prefix(env, serd_string(name), serd_string(uri))); assert(!serd_env_set_base_uri(env, serd_string(uri))); - // Successfully copy an env to count the number of allocations + // Successfully copy the env to count the number of allocations const size_t n_setup_allocs = allocator.n_allocations; SerdEnv* const copy = serd_env_copy(&allocator.base, env); assert(copy); |