From ca3a7049506cd1ba91326a36fc02a7319657728c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 22 Jul 2021 15:26:22 -0400 Subject: Preserve long or short quoting from input documents --- test/test_writer.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test/test_writer.c') 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); -- cgit v1.2.1