aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_reader_writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-08-12 13:42:25 -0400
committerDavid Robillard <d@drobilla.net>2022-01-28 21:57:07 -0500
commitd4aec28ba8ad24d5aef3ee12beeb1b805148eab1 (patch)
treee41d1aef4e492b0f06044ad611dc6c23defef34b /test/test_reader_writer.c
parentda7940afb82d8d1dd5321b311f27340f5702aea2 (diff)
downloadserd-d4aec28ba8ad24d5aef3ee12beeb1b805148eab1.tar.gz
serd-d4aec28ba8ad24d5aef3ee12beeb1b805148eab1.tar.bz2
serd-d4aec28ba8ad24d5aef3ee12beeb1b805148eab1.zip
Make blank node prefixing automatic
Though potentially useful, I don't think the complexity cost of the old interface (both to the implementation and to the user) is worth it. A special tool to transform blank node labels (for example with regular expressions) would be a better approach to this if it's ever needed in the future.
Diffstat (limited to 'test/test_reader_writer.c')
-rw-r--r--test/test_reader_writer.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/test/test_reader_writer.c b/test/test_reader_writer.c
index c0af313a..1bad22cd 100644
--- a/test/test_reader_writer.c
+++ b/test/test_reader_writer.c
@@ -51,9 +51,6 @@ test_writer(const char* const path)
assert(writer);
- serd_writer_chop_blank_prefix(writer, "tmp");
- serd_writer_chop_blank_prefix(writer, NULL);
-
const SerdNode* lit = serd_nodes_string(nodes, SERD_STRING("hello"));
const SerdSink* const iface = serd_writer_sink(writer);
@@ -152,17 +149,6 @@ test_reader(const char* path)
assert(serd_reader_read_document(reader) == SERD_ERR_BAD_CALL);
assert(serd_reader_read_chunk(reader) == SERD_ERR_BAD_CALL);
- serd_reader_add_blank_prefix(reader, "tmp");
-
-#if defined(__GNUC__)
-# pragma GCC diagnostic push
-# pragma GCC diagnostic ignored "-Wnonnull"
-#endif
- serd_reader_add_blank_prefix(reader, NULL);
-#if defined(__GNUC__)
-# pragma GCC diagnostic pop
-#endif
-
SerdByteSource* byte_source = serd_byte_source_new_filename(path, 4096);
assert(!serd_reader_start(reader, byte_source));
assert(!serd_reader_read_document(reader));