diff options
author | David Robillard <d@drobilla.net> | 2018-09-30 20:46:09 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-27 13:13:58 +0100 |
commit | c72c0d4ee90cec4e288f3b23eec5413bb6b1ee32 (patch) | |
tree | 3e361480f69bac9531d4282cfcbf5a5bdb18d654 /tests | |
parent | 7515bb32246098af42bb105e9e1256ce1f6018ae (diff) | |
download | serd-c72c0d4ee90cec4e288f3b23eec5413bb6b1ee32.tar.gz serd-c72c0d4ee90cec4e288f3b23eec5413bb6b1ee32.tar.bz2 serd-c72c0d4ee90cec4e288f3b23eec5413bb6b1ee32.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 cafd9653..4ff4c8f4 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -531,12 +531,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"); |