aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_reader_writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-12-29 20:05:00 -0500
committerDavid Robillard <d@drobilla.net>2023-12-02 16:27:02 -0500
commit41c4935f03caef37baff3d22310b90abd300fd02 (patch)
tree69bea30ba4292d94f187659837cf8f204f7ab8c2 /test/test_reader_writer.c
parent7a179e568a3576819d0e600cf35c94051e107d33 (diff)
downloadserd-41c4935f03caef37baff3d22310b90abd300fd02.tar.gz
serd-41c4935f03caef37baff3d22310b90abd300fd02.tar.bz2
serd-41c4935f03caef37baff3d22310b90abd300fd02.zip
Rename SerdStyle to SerdWriterFlags
Diffstat (limited to 'test/test_reader_writer.c')
-rw-r--r--test/test_reader_writer.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/test_reader_writer.c b/test/test_reader_writer.c
index bb27cf3e..6c759d8d 100644
--- a/test/test_reader_writer.c
+++ b/test/test_reader_writer.c
@@ -394,8 +394,9 @@ quiet_error_sink(void* const handle, const SerdError* const e)
static void
test_write_errors(void)
{
- ErrorContext ctx = {0U, 0U};
- const SerdStyle style = (SerdStyle)(SERD_STYLE_STRICT | SERD_STYLE_CURIED);
+ ErrorContext ctx = {0U, 0U};
+ const SerdWriterFlags style =
+ (SerdWriterFlags)(SERD_WRITE_STRICT | SERD_WRITE_CURIED);
const size_t max_offsets[] = {0, 386, 1911, 2003, 386};
@@ -440,7 +441,7 @@ test_writer(const char* const path)
assert(fd);
SerdWriter* writer =
- serd_writer_new(SERD_TURTLE, (SerdStyle)0, env, NULL, serd_file_sink, fd);
+ serd_writer_new(SERD_TURTLE, 0, env, NULL, serd_file_sink, fd);
assert(writer);
serd_writer_chop_blank_prefix(writer, "tmp");
@@ -516,8 +517,8 @@ test_writer(const char* const path)
// Test buffer sink
SerdBuffer buffer = {NULL, 0};
- writer = serd_writer_new(
- SERD_TURTLE, (SerdStyle)0, env, NULL, serd_buffer_sink, &buffer);
+ writer =
+ serd_writer_new(SERD_TURTLE, 0, env, NULL, serd_buffer_sink, &buffer);
o = serd_node_from_string(SERD_URI, "http://example.org/base");
assert(!serd_writer_set_base_uri(writer, &o));
@@ -533,8 +534,8 @@ test_writer(const char* const path)
buffer.buf = NULL;
buffer.len = 0;
- writer = serd_writer_new(
- SERD_TURTLE, (SerdStyle)0, env, NULL, serd_buffer_sink, &buffer);
+ writer =
+ serd_writer_new(SERD_TURTLE, 0U, env, NULL, serd_buffer_sink, &buffer);
assert(!serd_writer_write_statement(
writer, 0, NULL, &s, &p, &nothing, NULL, NULL));