7 #define BOOST_TEST_MODULE (split test) 8 #include "boost/test/unit_test.hpp" 18 BOOST_AUTO_TEST_SUITE(split_test)
23 std::vector<std::string> v;
24 split(s,
':', std::back_inserter(v));
25 BOOST_TEST(v.size() == 0ul);
31 std::vector<std::string> v;
32 split(s,
':', std::back_inserter(v));
34 BOOST_TEST(v == ref, boost::test_tools::per_element{});
40 std::vector<std::string> v;
41 split(s,
':', std::back_inserter(v));
43 BOOST_TEST(v == ref, boost::test_tools::per_element{});
49 std::vector<std::string> v;
50 split(s,
':', std::back_inserter(v));
52 BOOST_TEST(v == ref, boost::test_tools::per_element{});
58 std::vector<std::string> v;
59 split(s,
':', std::back_inserter(v));
67 std::vector<std::string> v;
68 split(s,
':', std::back_inserter(v));
76 std::vector<std::string> v;
77 split(s,
':', std::back_inserter(v));
82 BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(empty_string_test)
std::vector< std::string > string_vector
void split(std::string const &s, char c, OutIter dest)