From 290be9610e32bb427dd0456e4b1e26526c479004 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 20 Feb 2021 13:53:52 -0500 Subject: Add serd_node_string_view() --- test/test_node.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/test_node.c') 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); } -- cgit v1.2.1