diff options
author | David Robillard <d@drobilla.net> | 2023-02-05 18:39:49 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | 343124df71010055c2c1e6cdcadd13d23b2c013a (patch) | |
tree | 7c2de6a72021adaac89e9c4fa97e7cc5503e0657 /test/test_reader_writer.c | |
parent | 530edb265fbbed20e6d3a6fd7a36461ff83d9b46 (diff) | |
download | serd-343124df71010055c2c1e6cdcadd13d23b2c013a.tar.gz serd-343124df71010055c2c1e6cdcadd13d23b2c013a.tar.bz2 serd-343124df71010055c2c1e6cdcadd13d23b2c013a.zip |
[WIP] Add support for URI hex escape decoding
Diffstat (limited to 'test/test_reader_writer.c')
-rw-r--r-- | test/test_reader_writer.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_reader_writer.c b/test/test_reader_writer.c index 0237cb6c..76ba10e8 100644 --- a/test/test_reader_writer.c +++ b/test/test_reader_writer.c @@ -202,10 +202,14 @@ test_writer(const char* const path) // Write statements with bad UTF-8 (should be replaced) const SerdNode* bad_lit = serd_nodes_get(nodes, serd_a_string(bad_lit_str)); + const SerdNode* bad_long_lit = serd_nodes_get( + nodes, + serd_a_literal(zix_string(bad_lit_str), SERD_IS_LONG, zix_empty_string())); const SerdNode* bad_uri = serd_nodes_get(nodes, serd_a_uri_string(bad_uri_str)); assert(!serd_sink_write(iface, 0, s, p, bad_lit, 0)); + assert(!serd_sink_write(iface, 0, s, p, bad_long_lit, 0)); assert(!serd_sink_write(iface, 0, s, p, bad_uri, 0)); // Write 1 valid statement @@ -267,7 +271,7 @@ test_reader(const char* path) SerdInputStream in = serd_open_input_file(path); assert(!serd_reader_start(reader, &in, NULL, 4096)); assert(!serd_reader_read_document(reader)); - assert(rt.n_statement == 6); + assert(rt.n_statement == 7); assert(!serd_reader_finish(reader)); serd_close_input(&in); |