aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_writer.c')
-rw-r--r--test/test_writer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_writer.c b/test/test_writer.c
index 2a852562..9ce69c55 100644
--- a/test/test_writer.c
+++ b/test/test_writer.c
@@ -110,8 +110,10 @@ test_write_long_literal(void)
SerdNode* s = serd_new_uri(serd_string("http://example.org/s"));
SerdNode* p = serd_new_uri(serd_string("http://example.org/p"));
- SerdNode* o = serd_new_string(serd_string("hello \"\"\"world\"\"\"!"));
+ SerdNode* o = serd_new_literal(
+ 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_node_free(o);