mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 02:33:24 -03:00
test: Add two more urlDecode tests
This commit is contained in:
parent
2eff198f49
commit
fa55972a75
1 changed files with 3 additions and 0 deletions
|
@ -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-");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue