Skip to content

Commit

Permalink
Testing of URI-decoding by normalize_link()
Browse files Browse the repository at this point in the history
  • Loading branch information
veloman-yunkan committed Nov 14, 2023
1 parent 8542b7d commit 6f5bd55
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/tools-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6f5bd55

Please sign in to comment.