From 31ef2936a1549cdc125c387a8f541d8b70e60c21 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 9 Jul 2021 21:39:31 -0400 Subject: Replace serd_reader_set_strict() with SerdReaderFlags --- test/test_reader.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/test_reader.c') diff --git a/test/test_reader.c b/test/test_reader.c index 6d4956e5..f931b258 100644 --- a/test/test_reader.c +++ b/test/test_reader.c @@ -58,7 +58,7 @@ test_read_string(void) SerdSink* sink = serd_sink_new(&rt, test_sink, NULL); assert(sink); - SerdReader* reader = serd_reader_new(world, SERD_TURTLE, sink); + SerdReader* reader = serd_reader_new(world, SERD_TURTLE, 0U, sink); assert(reader); // Test reading a string that ends exactly at the end of input (no newline) @@ -138,7 +138,7 @@ test_read_eof_by_page(const char* const path) SerdWorld* world = serd_world_new(); ReaderTest ignored = {0, 0, 0, 0}; SerdSink* sink = serd_sink_new(&ignored, test_sink, NULL); - SerdReader* reader = serd_reader_new(world, SERD_TURTLE, sink); + SerdReader* reader = serd_reader_new(world, SERD_TURTLE, 0U, sink); serd_reader_start_stream( reader, (SerdReadFunc)fread, (SerdStreamErrorFunc)ferror, f, NULL, 4096); @@ -160,7 +160,7 @@ test_read_eof_by_byte(void) SerdWorld* world = serd_world_new(); ReaderTest ignored = {0, 0, 0, 0}; SerdSink* sink = serd_sink_new(&ignored, test_sink, NULL); - SerdReader* reader = serd_reader_new(world, SERD_TURTLE, sink); + SerdReader* reader = serd_reader_new(world, SERD_TURTLE, 0U, sink); size_t n_reads = 0U; serd_reader_start_stream(reader, @@ -211,7 +211,7 @@ test_read_nquads_chunks(const char* const path) SerdSink* const sink = serd_sink_new(&rt, test_sink, NULL); assert(sink); - SerdReader* const reader = serd_reader_new(world, SERD_NQUADS, sink); + SerdReader* const reader = serd_reader_new(world, SERD_NQUADS, 0U, sink); assert(reader); SerdStatus st = serd_reader_start_stream( @@ -290,7 +290,7 @@ test_read_turtle_chunks(const char* const path) SerdSink* sink = serd_sink_new(&rt, test_sink, NULL); assert(sink); - SerdReader* reader = serd_reader_new(world, SERD_TURTLE, sink); + SerdReader* reader = serd_reader_new(world, SERD_TURTLE, 0U, sink); assert(reader); SerdStatus st = serd_reader_start_stream( -- cgit v1.2.1