diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/overflow_test.c | 4 | ||||
-rw-r--r-- | tests/read_chunk_test.c | 2 | ||||
-rw-r--r-- | tests/serd_test.c | 8 |
3 files changed, 8 insertions, 6 deletions
diff --git a/tests/overflow_test.c b/tests/overflow_test.c index 7e545793..e3031b7e 100644 --- a/tests/overflow_test.c +++ b/tests/overflow_test.c @@ -24,7 +24,9 @@ static SerdStatus test(SerdWorld* world, SerdSink* sink, const char* str, size_t stack_size) { - SerdReader* reader = serd_reader_new(world, SERD_TURTLE, sink, stack_size); + SerdReader* reader = + serd_reader_new(world, SERD_TURTLE, 0, sink, stack_size); + serd_reader_start_string(reader, str, NULL); const SerdStatus st = serd_reader_read_document(reader); serd_reader_free(reader); diff --git a/tests/read_chunk_test.c b/tests/read_chunk_test.c index 54513f06..f38f4cb8 100644 --- a/tests/read_chunk_test.c +++ b/tests/read_chunk_test.c @@ -80,7 +80,7 @@ main(void) serd_sink_set_statement_func(sink, on_statement); serd_sink_set_end_func(sink, on_end); - SerdReader* reader = serd_reader_new(world, SERD_TURTLE, sink, 4096); + SerdReader* reader = serd_reader_new(world, SERD_TURTLE, 0, sink, 4096); assert(reader); assert(!serd_reader_start_string(reader, diff --git a/tests/serd_test.c b/tests/serd_test.c index 649cbee8..afa4b2cc 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -134,7 +134,7 @@ test_read_chunks(void) assert(sink); serd_sink_set_statement_func(sink, count_statements); - SerdReader* reader = serd_reader_new(world, SERD_TURTLE, sink, 4096); + SerdReader* reader = serd_reader_new(world, SERD_TURTLE, 0, sink, 4096); assert(reader); assert(f); @@ -216,7 +216,7 @@ test_strict_write(void) SerdEnv* env = serd_env_new(NULL); SerdWriter* writer = serd_writer_new(world, SERD_TURTLE, - SERD_WRITE_STRICT, + 0, env, (SerdWriteFunc)fwrite, fd); @@ -742,7 +742,7 @@ test_writer(const char* const path) SerdWriter* writer = serd_writer_new(world, SERD_TURTLE, - 0, + SERD_WRITE_LAX, env, (SerdWriteFunc)fwrite, fd); @@ -858,7 +858,7 @@ test_reader(const char* path) SerdSink* sink = serd_sink_new(&n_statements, NULL); serd_sink_set_statement_func(sink, count_statements); - SerdReader* reader = serd_reader_new(world, SERD_TURTLE, sink, 4096); + SerdReader* reader = serd_reader_new(world, SERD_TURTLE, 0, sink, 4096); assert(reader); serd_reader_add_blank_prefix(reader, "tmp"); |