aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_node.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-13 11:22:18 +0100
committerDavid Robillard <d@drobilla.net>2021-03-07 15:32:23 -0500
commitc0410fab52f4e2e36c2779a6ec8dc9ef89a8ee58 (patch)
treed23d782c96ae4ed4e26bdb3a8c9343175364986d /test/test_node.c
parent3ec66799f0b9be2f83251721f91a8b913abd29ec (diff)
downloadserd-c0410fab52f4e2e36c2779a6ec8dc9ef89a8ee58.tar.gz
serd-c0410fab52f4e2e36c2779a6ec8dc9ef89a8ee58.tar.bz2
serd-c0410fab52f4e2e36c2779a6ec8dc9ef89a8ee58.zip
Shorten node constructor names
Diffstat (limited to 'test/test_node.c')
-rw-r--r--test/test_node.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_node.c b/test/test_node.c
index ac0a02ae..52a98740 100644
--- a/test/test_node.c
+++ b/test/test_node.c
@@ -91,7 +91,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]);
@@ -111,7 +111,7 @@ test_integer_to_node(void)
"0", "0", "-23", "23", "-12340", "1000", "-1000"};
for (size_t i = 0; i < sizeof(int_test_nums) / sizeof(double); ++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);
@@ -127,7 +127,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));