From 6f5bd55a922432faf0d0193fd995947e8c533684 Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Tue, 14 Nov 2023 17:20:07 +0400 Subject: [PATCH] Testing of URI-decoding by normalize_link() --- test/tools-test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/tools-test.cpp b/test/tools-test.cpp index e2cdbbc2..8af03445 100644 --- a/test/tools-test.cpp +++ b/test/tools-test.cpp @@ -247,6 +247,9 @@ TEST(tools, normalize_link) ASSERT_EQ(normalize_link("a", ""), "a"); ASSERT_EQ(normalize_link("./a", ""), "a"); + + // URI-decoding is performed + ASSERT_EQ(normalize_link("/%41%62c", "/"), "Abc"); } TEST(tools, addler32)