#include "boost/test/unit_test.hpp"
#include "cetlib/split_by_regex.h"
#include <string>
#include <vector>
Go to the source code of this file.
#define BOOST_TEST_MODULE (split_by_regex test) |
BOOST_AUTO_TEST_CASE |
( |
empty_string_test |
| ) |
|
Definition at line 19 of file split_by_regex_test.cc.
22 BOOST_TEST(v.size() == 1ul);
std::vector< std::string > split_by_regex(std::string const &str, std::regex const &reDelimSet)
std::vector< std::string > string_vector
BOOST_AUTO_TEST_CASE |
( |
a_string_test |
| ) |
|
Definition at line 25 of file split_by_regex_test.cc.
28 BOOST_TEST(v.size() == 1ul);
29 BOOST_TEST(v[0] ==
"a");
std::vector< std::string > split_by_regex(std::string const &str, std::regex const &reDelimSet)
std::vector< std::string > string_vector
BOOST_AUTO_TEST_CASE |
( |
a1_string_test |
| ) |
|
Definition at line 32 of file split_by_regex_test.cc.
35 BOOST_TEST(v.size() == 1ul);
36 BOOST_TEST(v[0] ==
"a");
std::vector< std::string > split_by_regex(std::string const &str, std::regex const &reDelimSet)
std::vector< std::string > string_vector
BOOST_AUTO_TEST_CASE |
( |
boo_string_test |
| ) |
|
Definition at line 39 of file split_by_regex_test.cc.
std::vector< std::string > split_by_regex(std::string const &str, std::regex const &reDelimSet)
std::vector< std::string > string_vector
BOOST_AUTO_TEST_CASE |
( |
ab_string_test |
| ) |
|
Definition at line 46 of file split_by_regex_test.cc.
std::vector< std::string > split_by_regex(std::string const &str, std::regex const &reDelimSet)
std::vector< std::string > string_vector
BOOST_AUTO_TEST_CASE |
( |
ab1_string_test |
| ) |
|
Definition at line 53 of file split_by_regex_test.cc.
std::vector< std::string > split_by_regex(std::string const &str, std::regex const &reDelimSet)
std::vector< std::string > string_vector
BOOST_AUTO_TEST_CASE |
( |
split_test_1 |
| ) |
|
Definition at line 60 of file split_by_regex_test.cc.
std::vector< std::string > split_by_regex(std::string const &str, std::regex const &reDelimSet)
std::vector< std::string > string_vector
BOOST_AUTO_TEST_CASE |
( |
split_test_2 |
| ) |
|
Definition at line 67 of file split_by_regex_test.cc.
70 "namespace::class::static_function().value", R
"((::|\(\)\.))"); 72 "namespace",
"class",
"static_function",
"value"};
std::vector< std::string > split_by_regex(std::string const &str, std::regex const &reDelimSet)
std::vector< std::string > string_vector
BOOST_AUTO_TEST_CASE |
( |
variable_subscript |
| ) |
|
Definition at line 76 of file split_by_regex_test.cc.
std::vector< std::string > split_by_regex(std::string const &str, std::regex const &reDelimSet)
std::vector< std::string > string_vector