aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-07-22 15:26:22 -0400
committerDavid Robillard <d@drobilla.net>2022-01-14 19:37:51 -0500
commitca3a7049506cd1ba91326a36fc02a7319657728c (patch)
tree7289c877d9dc6286ab1826fab45e8a1612e8bc20 /test/test_writer.c
parent21f17ad27b3e805003e50b0f5fcbe606bfef0f3b (diff)
downloadserd-ca3a7049506cd1ba91326a36fc02a7319657728c.tar.gz
serd-ca3a7049506cd1ba91326a36fc02a7319657728c.tar.bz2
serd-ca3a7049506cd1ba91326a36fc02a7319657728c.zip
Preserve long or short quoting from input documents
Diffstat (limited to 'test/test_writer.c')
-rw-r--r--test/test_writer.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test_writer.c b/test/test_writer.c
index c9a77354..fd650ecd 100644
--- a/test/test_writer.c
+++ b/test/test_writer.c
@@ -64,11 +64,17 @@ test_write_long_literal(void)
const SerdNode* s =
serd_nodes_uri(nodes, SERD_STRING("http://example.org/s"));
+
const SerdNode* p =
serd_nodes_uri(nodes, SERD_STRING("http://example.org/p"));
+
const SerdNode* o =
- serd_nodes_string(nodes, SERD_STRING("hello \"\"\"world\"\"\"!"));
+ serd_nodes_literal(nodes,
+ SERD_STRING("hello \"\"\"world\"\"\"!"),
+ SERD_IS_LONG,
+ SERD_EMPTY_STRING());
+ assert(serd_node_flags(o) & SERD_IS_LONG);
assert(!serd_sink_write(serd_writer_sink(writer), 0, s, p, o, NULL));
serd_writer_free(writer);