aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_reader_writer.c11
-rw-r--r--test/test_writer.c8
2 files changed, 9 insertions, 10 deletions
diff --git a/test/test_reader_writer.c b/test/test_reader_writer.c
index abea37b3..3cacd4be 100644
--- a/test/test_reader_writer.c
+++ b/test/test_reader_writer.c
@@ -370,9 +370,8 @@ faulty_sink(const void* const buf,
static void
test_write_errors(void)
{
- SerdWorld* const world = serd_world_new();
- ErrorContext ctx = {0U, 0U};
- const SerdWriterFlags style = (SerdWriterFlags)SERD_WRITE_STRICT;
+ SerdWorld* const world = serd_world_new();
+ ErrorContext ctx = {0U, 0U};
const size_t max_offsets[] = {0, 386, 1911, 2003, 386};
@@ -385,7 +384,7 @@ test_write_errors(void)
SerdEnv* const env = serd_env_new(serd_empty_string());
SerdWriter* const writer =
- serd_writer_new(world, syntax, style, env, faulty_sink, &ctx);
+ serd_writer_new(world, syntax, 0U, env, faulty_sink, &ctx);
const SerdSink* const sink = serd_writer_sink(writer);
SerdReader* const reader = serd_reader_new(world, SERD_TRIG, sink, 4096U);
@@ -413,8 +412,8 @@ test_writer(const char* const path)
SerdWorld* world = serd_world_new();
- 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 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);