mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-26 20:31:13 +02:00
test: Remove boost::split from getarg_tests.cpp
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(getarg_tests, BasicTestingSetup)
|
||||
@@ -21,8 +20,9 @@ BOOST_FIXTURE_TEST_SUITE(getarg_tests, BasicTestingSetup)
|
||||
void ResetArgs(ArgsManager& local_args, const std::string& strArg)
|
||||
{
|
||||
std::vector<std::string> vecArg;
|
||||
if (strArg.size())
|
||||
boost::split(vecArg, strArg, IsSpace, boost::token_compress_on);
|
||||
if (strArg.size()) {
|
||||
vecArg = SplitString(strArg, ' ');
|
||||
}
|
||||
|
||||
// Insert dummy executable name:
|
||||
vecArg.insert(vecArg.begin(), "testbitcoin");
|
||||
|
Reference in New Issue
Block a user