From 413b4d1f58bdf1d6aed785ae9b076c7b7b9a7350 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 Jan 2021 16:13:46 +0100 Subject: Simplify literal construction API --- test/test_reader_writer.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/test_reader_writer.c') diff --git a/test/test_reader_writer.c b/test/test_reader_writer.c index b1121cbc..9183af5c 100644 --- a/test/test_reader_writer.c +++ b/test/test_reader_writer.c @@ -475,12 +475,11 @@ test_writer(const char* const path) writer, 0, NULL, junk[i][0], junk[i][1], junk[i][2])); } - const SerdStringView empty = serd_empty_string(); const SerdStringView urn_Type = serd_string("urn:Type"); const SerdStringView en = serd_string("en"); - SerdNode* const t = serd_new_literal(buf_view, urn_Type, empty); - SerdNode* const l = serd_new_literal(buf_view, empty, en); + SerdNode* const t = serd_new_typed_literal(buf_view, urn_Type); + SerdNode* const l = serd_new_plain_literal(buf_view, en); const SerdNode* good[][3] = {{s, p, o}, {s, p, t}, {s, p, l}}; for (size_t i = 0; i < sizeof(good) / (sizeof(SerdNode*) * 3); ++i) { -- cgit v1.2.1