aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-21 22:58:53 +0000
committerDavid Robillard <d@drobilla.net>2011-01-21 22:58:53 +0000
commit187a60b1e0e80e44b5be52a7054585f0be35ca9f (patch)
tree5a9568f5c802d2796d82d13f294ecf391767731f /src/serdi.c
parentfbf024e07f80f547677f9d39e64dd4bdd4be99f3 (diff)
downloadserd-187a60b1e0e80e44b5be52a7054585f0be35ca9f.tar.gz
serd-187a60b1e0e80e44b5be52a7054585f0be35ca9f.tar.bz2
serd-187a60b1e0e80e44b5be52a7054585f0be35ca9f.zip
Full rount-trip test coverage for Turtle reading and writing.
Fix writing UTF-8 URIs. Improved test coverage. git-svn-id: http://svn.drobilla.net/serd/trunk@28 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/serdi.c')
-rw-r--r--src/serdi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/serdi.c b/src/serdi.c
index b14df3d3..00e687de 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -46,7 +46,6 @@ event_base(void* handle,
SerdURI abs_base_uri;
if (!serd_uri_resolve(&uri, &state->base_uri, &abs_base_uri)) {
fprintf(stderr, "error: failed to resolve new base URI\n");
- assert(false);
return false;
}
base_uri_str = serd_string_new_from_uri(&abs_base_uri, &base_uri);
@@ -173,7 +172,7 @@ main(int argc, char** argv)
if (strncmp((const char*)in_filename, "file:", 5)) {
fprintf(stderr, "unsupported URI scheme `%s'\n", in_filename);
return 1;
- } else if (!strncmp((const char*)in_filename, "file:///", 7)) {
+ } else if (!strncmp((const char*)in_filename, "file://", 7)) {
in_filename += 7;
} else {
in_filename += 5;