diff options
author | David Robillard <d@drobilla.net> | 2018-09-30 20:46:09 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-11-25 22:12:47 +0100 |
commit | b3d4f6556db6c399b865355fbc96f0f121179bff (patch) | |
tree | 737e10d0d6aabc1642f5a5d55a4ce35dfbfe4e0f | |
parent | 3f8ff1646ef9c69e3508526d4514aa641b563e53 (diff) | |
download | serd-b3d4f6556db6c399b865355fbc96f0f121179bff.tar.gz serd-b3d4f6556db6c399b865355fbc96f0f121179bff.tar.bz2 serd-b3d4f6556db6c399b865355fbc96f0f121179bff.zip |
Add rooted URI resolution test
-rw-r--r-- | tests/serd_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c index 7b4924d8..d4e8e9d9 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -397,7 +397,7 @@ main(void) } 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); @@ -420,6 +420,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, |