aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/serd_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c
index 1ddb2dd8..81a1ef41 100644
--- a/tests/serd_test.c
+++ b/tests/serd_test.c
@@ -346,7 +346,7 @@ main(void)
assert(!serd_new_uri(NULL));
SerdNode* not_a_uri = serd_new_string("hello");
- SerdNode* root = serd_new_uri("http://example.org/a/b/");
+ SerdNode* root = serd_new_uri("http://example.org/a/b/ignored");
SerdNode* base = serd_new_uri("http://example.org/a/b/c/");
SerdNode* nil = serd_new_resolved_uri(NULL, base);
SerdNode* nil2 = serd_new_resolved_uri("", base);
@@ -363,6 +363,8 @@ main(void)
check_rel_uri("http://example.org/a/", base, NULL, "../../") ||
check_rel_uri("http://example.org/a/", base, root,
"http://example.org/a/") ||
+ check_rel_uri("http://example.org/a/b/x", root, root,
+ "x") ||
check_rel_uri("http://example.org/", base, NULL,
"../../../") ||
check_rel_uri("http://drobilla.net/a", base, NULL,