aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_uri.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-03-29 19:59:50 -0400
committerDavid Robillard <d@drobilla.net>2023-04-05 09:45:15 -0400
commitf93c3fdd6c7d6ca61bec55d3c1ffae7e7c793913 (patch)
tree749ae66010fb5b8bfcf398c29ce252f9138cce5b /test/test_uri.c
parentdd777c54b7585823be1f977e9dd887a5110a74f3 (diff)
downloadserd-f93c3fdd6c7d6ca61bec55d3c1ffae7e7c793913.tar.gz
serd-f93c3fdd6c7d6ca61bec55d3c1ffae7e7c793913.tar.bz2
serd-f93c3fdd6c7d6ca61bec55d3c1ffae7e7c793913.zip
Fix relative URI creation
Diffstat (limited to 'test/test_uri.c')
-rw-r--r--test/test_uri.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/test/test_uri.c b/test/test_uri.c
index bcd670e5..ac24a2be 100644
--- a/test/test_uri.c
+++ b/test/test_uri.c
@@ -265,12 +265,8 @@ test_relative_uri(void)
// Related base
- /* Expected:
check_relative_uri(
"http://example.org/a/b", "http://example.org/", NULL, "a/b");
- Actual: */
- check_relative_uri(
- "http://example.org/a/b", "http://example.org/", NULL, "/a/b");
check_relative_uri(
"http://example.org/a/b", "http://example.org/a/", NULL, "b");
@@ -286,10 +282,7 @@ test_relative_uri(void)
check_relative_uri("http://example.org/", "http://example.org/", NULL, "");
- /* Expected:
check_relative_uri("http://example.org/", "http://example.org/a", NULL, "");
- Actual: */
- check_relative_uri("http://example.org/", "http://example.org/a", NULL, "/");
check_relative_uri(
"http://example.org/", "http://example.org/a/", NULL, "../");
@@ -337,10 +330,7 @@ test_relative_uri(void)
check_relative_uri("http://example.org/a/",
"http://example.org/a/",
"http://example.org/a/",
- /* Expected:
"");
- Actual: */
- "http://example.org/a/");
check_relative_uri("http://example.org/a/b",
"http://example.org/a/b/c",
@@ -350,10 +340,7 @@ test_relative_uri(void)
check_relative_uri("http://example.org/a",
"http://example.org/a/b/c",
"http://example.org/a/b",
- /* Expected:
"http://example.org/a");
- Actual: */
- "../../a");
}
int