diff options
author | David Robillard <d@drobilla.net> | 2021-10-21 15:38:10 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-28 21:57:07 -0500 |
commit | b404312686874e539b617d1f27ccbaa5a82936af (patch) | |
tree | c2fdb2cc046e6da53071629cd1750dcc327e6cd9 /test/test_node_syntax.c | |
parent | d4aec28ba8ad24d5aef3ee12beeb1b805148eab1 (diff) | |
download | serd-b404312686874e539b617d1f27ccbaa5a82936af.tar.gz serd-b404312686874e539b617d1f27ccbaa5a82936af.tar.bz2 serd-b404312686874e539b617d1f27ccbaa5a82936af.zip |
Replace serdi with more fine-grained tools
Especially with the new functionality, the complexity of the command-line
interface alone was really becoming unmanageable. The serdi implementation
also had the highest cyclomatic complexity of the entire codebase by a huge
margin.
So, take a page from the Unix philosophy and split serdi into several more
finely-honed tools that can be freely composed. Though there is still
unfortunately quite a bit of option overlap between them due to the common
details of reading RDF, I think the resulting tools are a lot easier to
understand, both from a user and a developer perspective.
Diffstat (limited to 'test/test_node_syntax.c')
-rw-r--r-- | test/test_node_syntax.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_node_syntax.c b/test/test_node_syntax.c index a9829688..9875e656 100644 --- a/test/test_node_syntax.c +++ b/test/test_node_syntax.c @@ -66,6 +66,9 @@ test_common(const SerdSyntax syntax) assert(test(syntax, serd_new_token(SERD_BLANK, SERD_STRING("b0")), "_:b0")); + assert(test( + syntax, serd_new_token(SERD_BLANK, SERD_STRING("named1")), "_:named1")); + assert(test(syntax, serd_new_uri(SERD_STRING("http://example.org/")), "<http://example.org/>")); |