test: Add two more urlDecode tests

This commit is contained in:
MarcoFalke 2024-04-26 08:26:52 +02:00
parent 2eff198f49
commit fa55972a75
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -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-");
}