Changeset View
Changeset View
Standalone View
Standalone View
src/test/getarg_tests.cpp
// Copyright (c) 2012-2015 The Bitcoin Core developers | // Copyright (c) 2012-2015 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "test/test_bitcoin.h" | #include <util.h> | ||||
#include "util.h" | |||||
#include <string> | #include <test/test_bitcoin.h> | ||||
#include <vector> | |||||
#include <boost/algorithm/string.hpp> | #include <boost/algorithm/string.hpp> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
#include <string> | |||||
#include <vector> | |||||
BOOST_FIXTURE_TEST_SUITE(getarg_tests, BasicTestingSetup) | BOOST_FIXTURE_TEST_SUITE(getarg_tests, BasicTestingSetup) | ||||
static void ResetArgs(const std::string &strArg) { | static void ResetArgs(const std::string &strArg) { | ||||
std::vector<std::string> vecArg; | std::vector<std::string> vecArg; | ||||
if (strArg.size()) | if (strArg.size()) | ||||
boost::split(vecArg, strArg, boost::is_space(), | boost::split(vecArg, strArg, boost::is_space(), | ||||
boost::token_compress_on); | boost::token_compress_on); | ||||
▲ Show 20 Lines • Show All 139 Lines • Show Last 20 Lines |