From ff0a252270401c4a0f09580c692f544430ec8883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= <remi@remlab.net> Date: Mon, 13 Sep 2021 18:33:08 +0300 Subject: [PATCH] url: add test case --- src/test/url.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/url.c b/src/test/url.c index d2b4361169ce..6f07d3e658e9 100644 --- a/src/test/url.c +++ b/src/test/url.c @@ -293,6 +293,8 @@ int main (void) "www.example.com", 0, "/caf%C3%A9/", NULL); test_url_parse("p://h/white%20spaced", "p", NULL, NULL, "h", 0, "/white%20spaced", NULL); + test_url_parse("p://h/[hello:world]", "p", NULL, NULL, "h", 0, + "/[hello:world]", NULL); /* Relative URIs */ test_url_parse("//example.com", NULL, NULL, NULL, "example.com", 0, NULL, NULL); -- GitLab