From f93c3fdd6c7d6ca61bec55d3c1ffae7e7c793913 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 29 Mar 2023 19:59:50 -0400 Subject: Fix relative URI creation --- test/test_uri.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'test/test_uri.c') 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 -- cgit v1.2.1