aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_env.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_env.c')
-rw-r--r--test/test_env.c4
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);