diff options
author | David Robillard <d@drobilla.net> | 2021-01-13 16:13:46 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 16:27:02 -0500 |
commit | 413b4d1f58bdf1d6aed785ae9b076c7b7b9a7350 (patch) | |
tree | 454cf92d9668431cbdcff8889e7597fcf162bf41 /test/test_reader_writer.c | |
parent | cd89a74a2f7bf8c3efc3ecf1597cf39d6295db00 (diff) | |
download | serd-413b4d1f58bdf1d6aed785ae9b076c7b7b9a7350.tar.gz serd-413b4d1f58bdf1d6aed785ae9b076c7b7b9a7350.tar.bz2 serd-413b4d1f58bdf1d6aed785ae9b076c7b7b9a7350.zip |
Simplify literal construction API
Diffstat (limited to 'test/test_reader_writer.c')
-rw-r--r-- | test/test_reader_writer.c | 5 |
1 files changed, 2 insertions, 3 deletions
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) { |