mirror of https://github.com/PurpleI2P/i2pd
Setup unit test environment.
parent
4ce7b0e9ef
commit
5d78e2f5e4
@ -0,0 +1,12 @@
|
||||
#define BOOST_TEST_MAIN
|
||||
#define BOOST_TEST_DYN_LINK
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include "../Identity.h"
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(IdentityTests)
|
||||
|
||||
|
||||
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
@ -0,0 +1,19 @@
|
||||
#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()
|
Loading…
Reference in New Issue