aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_node_syntax.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_node_syntax.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_node_syntax.c')
-rw-r--r--test/test_node_syntax.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_node_syntax.c b/test/test_node_syntax.c
index bb394c43..26b57ff1 100644
--- a/test/test_node_syntax.c
+++ b/test/test_node_syntax.c
@@ -53,11 +53,12 @@ test_common(const SerdSyntax syntax)
assert(test(syntax, serd_new_string(SERD_STRING("node")), "\"node\""));
assert(test(syntax,
- serd_new_plain_literal(SERD_STRING("hallo"), SERD_STRING("de")),
+ serd_new_literal(
+ SERD_STRING("hallo"), SERD_HAS_LANGUAGE, SERD_STRING("de")),
"\"hallo\"@de"));
assert(test(syntax,
- serd_new_typed_literal(SERD_STRING("X"), datatype),
+ serd_new_literal(SERD_STRING("X"), SERD_HAS_DATATYPE, datatype),
"\"X\"^^<http://example.org/Datatype>"));
assert(test(syntax, serd_new_blank(SERD_STRING("blank")), "_:blank"));