aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-07-09 21:36:52 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:07 -0500
commit06bc73c6fdf986eb5d13943b497992a947661bb1 (patch)
tree23d43aa2429696bc27bc3d1c5ec2fcf7def995ff /test/test_writer.c
parent7219a81ad6cff840eb604983b3752d4f2097532a (diff)
downloadserd-06bc73c6fdf986eb5d13943b497992a947661bb1.tar.gz
serd-06bc73c6fdf986eb5d13943b497992a947661bb1.tar.bz2
serd-06bc73c6fdf986eb5d13943b497992a947661bb1.zip
Replace SERD_WRITE_STRICT flag with SERD_WRITE_LAX
The unset value for flags should represent the best default, which in this case is strict parsing. Lax parsing is the riskier opt-in option.
Diffstat (limited to 'test/test_writer.c')
-rw-r--r--test/test_writer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_writer.c b/test/test_writer.c
index e56dd789..9b885dd6 100644
--- a/test/test_writer.c
+++ b/test/test_writer.c
@@ -177,10 +177,10 @@ test_strict_write(void)
FILE* const fd = fopen(path, "wb");
assert(fd);
- SerdWorld* world = serd_world_new();
- SerdEnv* const env = serd_env_new(serd_empty_string());
- SerdWriter* const writer = serd_writer_new(
- world, SERD_TURTLE, (SerdWriterFlags)SERD_WRITE_STRICT, env, null_sink, fd);
+ SerdWorld* world = serd_world_new();
+ SerdEnv* const env = serd_env_new(serd_empty_string());
+ SerdWriter* const writer =
+ serd_writer_new(world, SERD_TURTLE, 0U, env, null_sink, fd);
assert(writer);