diff options
author | David Robillard <d@drobilla.net> | 2020-11-13 11:22:18 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 16:27:02 -0500 |
commit | 4401b2bbcda598599469722d7288bc36e389e356 (patch) | |
tree | 858d8e69db0018e3c825c74cbd2cd82a4b66a0c6 /test/test_node.c | |
parent | 70277ccdb3035db83d81d942777c12a60c4aded3 (diff) | |
download | serd-4401b2bbcda598599469722d7288bc36e389e356.tar.gz serd-4401b2bbcda598599469722d7288bc36e389e356.tar.bz2 serd-4401b2bbcda598599469722d7288bc36e389e356.zip |
Shorten node constructor names
Diffstat (limited to 'test/test_node.c')
-rw-r--r-- | test/test_node.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_node.c b/test/test_node.c index a1473e7a..21ef6feb 100644 --- a/test/test_node.c +++ b/test/test_node.c @@ -80,7 +80,7 @@ test_double_to_node(void) NULL}; for (size_t i = 0; i < sizeof(dbl_test_nums) / sizeof(double); ++i) { - SerdNode node = serd_node_new_decimal(dbl_test_nums[i], 8); + SerdNode node = serd_new_decimal(dbl_test_nums[i], 8); const bool pass = (node.buf && dbl_test_strs[i]) ? !strcmp(node.buf, dbl_test_strs[i]) : (node.buf == dbl_test_strs[i]); @@ -102,7 +102,7 @@ test_integer_to_node(void) "0", "0", "-23", "23", "-12340", "1000", "-1000"}; for (size_t i = 0; i < N_TEST_NUMS; ++i) { - SerdNode node = serd_node_new_integer(int_test_nums[i]); + SerdNode node = serd_new_integer(int_test_nums[i]); assert(!strcmp(node.buf, int_test_strs[i])); assert(node.n_bytes == strlen(node.buf)); serd_node_free(&node); @@ -120,7 +120,7 @@ test_blob_to_node(void) data[i] = (uint8_t)((size + i) % 256); } - SerdNode blob = serd_node_new_blob(data, size, size % 5); + SerdNode blob = serd_new_blob(data, size, size % 5); assert(blob.n_bytes == strlen(blob.buf)); |