Skip to content

Commit fa55972

Browse files
author
MarcoFalke
committed
test: Add two more urlDecode tests
1 parent 2eff198 commit fa55972

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/common_url_tests.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ BOOST_AUTO_TEST_CASE(decode_malformed_test) {
5454
BOOST_CHECK_EQUAL(UrlDecode(" %Z "), " %Z ");
5555
BOOST_CHECK_EQUAL(UrlDecode(" % X"), " % X");
5656

57+
BOOST_CHECK_EQUAL(UrlDecode("%%ffg"), "%\xffg");
58+
BOOST_CHECK_EQUAL(UrlDecode("%fg"), "%fg");
59+
5760
BOOST_CHECK_EQUAL(UrlDecode("%-1"), "%-1");
5861
BOOST_CHECK_EQUAL(UrlDecode("%1-"), "%1-");
5962
}

0 commit comments

Comments
 (0)