diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2024-04-26 08:26:52 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2024-04-26 08:33:56 +0200 |
commit | fa55972a758865a6bd0114afe72e51877896d495 (patch) | |
tree | 11bacbf85f40e616170f2cb52aedbb37038b1944 /src/test | |
parent | 2eff198f4900c34442439ef2cbd9d82f4903f915 (diff) | |
download | bitcoin-fa55972a758865a6bd0114afe72e51877896d495.tar.xz |
test: Add two more urlDecode tests
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/common_url_tests.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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-"); } |