aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-02-20 13:53:52 -0500
committerDavid Robillard <d@drobilla.net>2023-12-02 16:27:02 -0500
commit290be9610e32bb427dd0456e4b1e26526c479004 (patch)
tree0bced58585c4d8a9977415fcaf9354c956626102 /test
parente80312a5ac9cdeaaa0d4f81e7aa258572d695c74 (diff)
downloadserd-290be9610e32bb427dd0456e4b1e26526c479004.tar.gz
serd-290be9610e32bb427dd0456e4b1e26526c479004.tar.bz2
serd-290be9610e32bb427dd0456e4b1e26526c479004.zip
Add serd_node_string_view()
Diffstat (limited to 'test')
-rw-r--r--test/test_node.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_node.c b/test/test_node.c
index 937d8a5f..a76bcd35 100644
--- a/test/test_node.c
+++ b/test/test_node.c
@@ -171,6 +171,8 @@ test_node_from_string(void)
serd_node_flags(hello) == SERD_HAS_QUOTE &&
!strcmp(serd_node_string(hello), "hello\""));
+ assert(!strcmp(serd_node_string_view(hello).data, "hello\""));
+ assert(serd_node_string_view(hello).length == 6);
serd_node_free(hello);
}