diff options
author | David Robillard <d@drobilla.net> | 2018-09-30 20:46:09 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-06-21 18:12:04 +0200 |
commit | d64e9b8b640e5a42a77e3b4355079aa6a90d4f3b (patch) | |
tree | c5763571943b98ca5e1ce1353bd9d30dcee3f91d | |
parent | 7127aca5baf1401254973d06f40354610849c378 (diff) | |
download | serd-d64e9b8b640e5a42a77e3b4355079aa6a90d4f3b.tar.gz serd-d64e9b8b640e5a42a77e3b4355079aa6a90d4f3b.tar.bz2 serd-d64e9b8b640e5a42a77e3b4355079aa6a90d4f3b.zip |
Add rooted URI resolution test
-rw-r--r-- | tests/serd_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c index eb70fc64..f7e7cbef 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -486,12 +486,13 @@ check_rel_uri(const char* uri, static void test_relative_uri(void) { - 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/"); check_rel_uri("http://example.org/a/b/c/foo", base, NULL, "foo"); 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, "http://drobilla.net/a"); |