diff options
author | David Robillard <d@drobilla.net> | 2018-09-30 20:46:09 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-12-19 20:55:32 -0500 |
commit | 4e2c4dbe74c4796e8f39254eaf07ec111bfe2c27 (patch) | |
tree | a3075e17c6526ce07f0b161a9295ac6ff0abedc3 /tests | |
parent | 775dc32bba83d9f352aceeb7a89df5fe273a8788 (diff) | |
download | serd-4e2c4dbe74c4796e8f39254eaf07ec111bfe2c27.tar.gz serd-4e2c4dbe74c4796e8f39254eaf07ec111bfe2c27.tar.bz2 serd-4e2c4dbe74c4796e8f39254eaf07ec111bfe2c27.zip |
Add rooted URI resolution test
Diffstat (limited to 'tests')
-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 c3530fbd..772123fe 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"); |