diff options
author | David Robillard <d@drobilla.net> | 2021-07-09 21:39:31 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:07 -0500 |
commit | 31ef2936a1549cdc125c387a8f541d8b70e60c21 (patch) | |
tree | 7c48e3273053c885ccbfa92b7762a7179828080e /test/test_reader_writer.c | |
parent | 3389cf3e506ad9e8475daf8b1cac0248274849bc (diff) | |
download | serd-31ef2936a1549cdc125c387a8f541d8b70e60c21.tar.gz serd-31ef2936a1549cdc125c387a8f541d8b70e60c21.tar.bz2 serd-31ef2936a1549cdc125c387a8f541d8b70e60c21.zip |
Replace serd_reader_set_strict() with SerdReaderFlags
Diffstat (limited to 'test/test_reader_writer.c')
-rw-r--r-- | test/test_reader_writer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_reader_writer.c b/test/test_reader_writer.c index fcd4a2b8..67c0d7ba 100644 --- a/test/test_reader_writer.c +++ b/test/test_reader_writer.c @@ -115,8 +115,8 @@ test_write_errors(void) SerdWriter* const writer = 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); + const SerdSink* const sink = serd_writer_sink(writer); + SerdReader* const reader = serd_reader_new(world, SERD_TRIG, 0U, sink); SerdStatus st = serd_reader_start_string(reader, doc_string, NULL); assert(!st); @@ -246,11 +246,11 @@ test_reader(const char* path) SerdLimits limits = old_limits; limits.reader_stack_size = 32U; serd_world_set_limits(world, limits); - assert(!serd_reader_new(world, SERD_TURTLE, sink)); + assert(!serd_reader_new(world, SERD_TURTLE, 0U, sink)); - // Restore original limits and successfully create reader + // Restore limits and successfully create reader serd_world_set_limits(world, old_limits); - SerdReader* reader = serd_reader_new(world, SERD_TURTLE, sink); + SerdReader* reader = serd_reader_new(world, SERD_TURTLE, 0U, sink); assert(reader); assert(serd_reader_read_chunk(reader) == SERD_FAILURE); |