mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-13 01:20:22 +03:00
20 lines
325 B
C++
20 lines
325 B
C++
|
#include <boost/test/unit_test.hpp>
|
||
|
#include "../util.h"
|
||
|
|
||
|
BOOST_AUTO_TEST_SUITE(UtilityTests)
|
||
|
|
||
|
using namespace i2p::util::http;
|
||
|
|
||
|
BOOST_AUTO_TEST_CASE(DecodeEmptyUrl)
|
||
|
{
|
||
|
BOOST_CHECK_EQUAL(urlDecode(""), "");
|
||
|
}
|
||
|
|
||
|
BOOST_AUTO_TEST_CASE(DecodeUrl)
|
||
|
{
|
||
|
BOOST_CHECK_EQUAL(urlDecode("%20"), " ");
|
||
|
}
|
||
|
|
||
|
|
||
|
BOOST_AUTO_TEST_SUITE_END()
|