Skip to content

Commit

Permalink
fixup! 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 73bd37a commit b69ff3a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/tools-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,13 @@ TEST(tools, getLinks)
"{ src, https://fonts.io/css?family=OpenSans }"
);

// URI-decoding is NOT performed on extracted links
// (that's normalize_link()'s job)
EXPECT_LINKS(
"<audio controls src ='/music/It&apos;s%20only%20love.ogg'></audio>",
"{ src, /music/It's%20only%20love.ogg }"
);

EXPECT_LINKS(
R"(<a href="/R&amp;D">Research and development</a>
blablabla
Expand Down

0 comments on commit b69ff3a

Please sign in to comment.