#include "boost/test/unit_test.hpp"
#include "cetlib/split.h"
#include <iterator>
#include <string>
#include <vector>
Go to the source code of this file.
BOOST_AUTO_TEST_CASE |
( |
empty_string_test |
| ) |
|
Definition at line 20 of file split_test.cc.
23 std::vector<std::string> v;
24 split(s,
':', std::back_inserter(v));
25 BOOST_TEST(v.size() == 0ul);
void split(std::string const &s, char c, OutIter dest)
BOOST_AUTO_TEST_CASE |
( |
a_string_test |
| ) |
|
Definition at line 28 of file split_test.cc.
31 std::vector<std::string> v;
32 split(
s,
':', std::back_inserter(v));
34 BOOST_TEST(v == ref, boost::test_tools::per_element{});
void split(std::string const &s, char c, OutIter dest)
BOOST_AUTO_TEST_CASE |
( |
a1_string_test |
| ) |
|
Definition at line 37 of file split_test.cc.
40 std::vector<std::string> v;
41 split(
s,
':', std::back_inserter(v));
43 BOOST_TEST(v == ref, boost::test_tools::per_element{});
void split(std::string const &s, char c, OutIter dest)
BOOST_AUTO_TEST_CASE |
( |
boo_string_test |
| ) |
|
Definition at line 46 of file split_test.cc.
49 std::vector<std::string> v;
50 split(
s,
':', std::back_inserter(v));
52 BOOST_TEST(v == ref, boost::test_tools::per_element{});
void split(std::string const &s, char c, OutIter dest)
BOOST_AUTO_TEST_CASE |
( |
ab_string_test |
| ) |
|
Definition at line 55 of file split_test.cc.
58 std::vector<std::string> v;
59 split(
s,
':', std::back_inserter(v));
std::vector< std::string > string_vector
void split(std::string const &s, char c, OutIter dest)
BOOST_AUTO_TEST_CASE |
( |
ab1_string_test |
| ) |
|
Definition at line 64 of file split_test.cc.
67 std::vector<std::string> v;
68 split(
s,
':', std::back_inserter(v));
std::vector< std::string > string_vector
void split(std::string const &s, char c, OutIter dest)
BOOST_AUTO_TEST_CASE |
( |
split_test_1 |
| ) |
|
Definition at line 73 of file split_test.cc.
76 std::vector<std::string> v;
77 split(
s,
':', std::back_inserter(v));
std::vector< std::string > string_vector
void split(std::string const &s, char c, OutIter dest)