diff options
author | David Robillard <d@drobilla.net> | 2021-07-09 21:36:52 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-13 23:04:12 -0500 |
commit | 2638ded01498b41a67574a2eae4181106226a933 (patch) | |
tree | 1f57ba340780ccf3c729c7b7cf94650ab6d5a55a /test | |
parent | e0e5b83f30b784699a5ae039e8ae7e1dd69410d4 (diff) | |
download | serd-2638ded01498b41a67574a2eae4181106226a933.tar.gz serd-2638ded01498b41a67574a2eae4181106226a933.tar.bz2 serd-2638ded01498b41a67574a2eae4181106226a933.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')
-rw-r--r-- | test/test_reader_writer.c | 4 | ||||
-rw-r--r-- | test/test_writer.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/test_reader_writer.c b/test/test_reader_writer.c index ec9f194b..3f538ada 100644 --- a/test/test_reader_writer.c +++ b/test/test_reader_writer.c @@ -178,8 +178,8 @@ test_writer(const char* const path) SerdWorld* world = serd_world_new(); SerdNodes* nodes = serd_world_nodes(world); - SerdWriter* writer = - serd_writer_new(world, SERD_TURTLE, 0, env, (SerdWriteFunc)fwrite, fd); + SerdWriter* writer = serd_writer_new( + world, SERD_TURTLE, SERD_WRITE_LAX, env, (SerdWriteFunc)fwrite, fd); assert(writer); serd_writer_chop_blank_prefix(writer, "tmp"); diff --git a/test/test_writer.c b/test/test_writer.c index 169c460a..aa5694cd 100644 --- a/test/test_writer.c +++ b/test/test_writer.c @@ -181,9 +181,9 @@ test_strict_write(void) FILE* fd = fopen(path, "wb"); assert(fd); - SerdEnv* env = serd_env_new(SERD_EMPTY_STRING()); - SerdWriter* writer = serd_writer_new( - world, SERD_TURTLE, SERD_WRITE_STRICT, env, (SerdWriteFunc)fwrite, fd); + SerdEnv* env = serd_env_new(SERD_EMPTY_STRING()); + SerdWriter* writer = + serd_writer_new(world, SERD_TURTLE, 0u, env, (SerdWriteFunc)fwrite, fd); assert(writer); |