From fa55972a758865a6bd0114afe72e51877896d495 Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Fri, 26 Apr 2024 08:26:52 +0200 Subject: [PATCH] test: Add two more urlDecode tests --- src/test/common_url_tests.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/common_url_tests.cpp b/src/test/common_url_tests.cpp index cc893cbed7..065c7d97bc 100644 --- a/src/test/common_url_tests.cpp +++ b/src/test/common_url_tests.cpp @@ -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-"); }