Skip to content

Commit

Permalink
Merge bitcoin#29967: test: Add two more urlDecode tests
Browse files Browse the repository at this point in the history
fa55972 test: Add two more urlDecode tests (MarcoFalke)

Pull request description:

  Trivial follow-up after bitcoin#29904 (comment)

ACKs for top commit:
  laanwj:
    Code review ACK bitcoin@fa55972
  fjahr:
    ACK fa55972
  stickies-v:
    ACK fa55972
  Sjors:
    utACK fa55972

Tree-SHA512: 99916feebb35b5670a365120f962fd6c28cb124635c99ac3ee3520dfc130bd1672f43b06b05b7b0b9e563d223bd009f8d6622817a2d2b4ee24596af40e2cdfaf
  • Loading branch information
fanquake committed Apr 26, 2024
2 parents 2eff198 + fa55972 commit 7973a67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/common_url_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ BOOST_AUTO_TEST_CASE(decode_malformed_test) {
BOOST_CHECK_EQUAL(UrlDecode(" %Z "), " %Z ");
BOOST_CHECK_EQUAL(UrlDecode(" % X"), " % X");

BOOST_CHECK_EQUAL(UrlDecode("%%ffg"), "%\xffg");
BOOST_CHECK_EQUAL(UrlDecode("%fg"), "%fg");

BOOST_CHECK_EQUAL(UrlDecode("%-1"), "%-1");
BOOST_CHECK_EQUAL(UrlDecode("%1-"), "%1-");
}
Expand Down

0 comments on commit 7973a67

Please sign in to comment.