57         std::string str_1(
"N->N2");
 
   58         std::vector<std::string> test_1_split_exact(2);
 
   59         test_1_split_exact[0] = std::string(
"N");
 
   60         test_1_split_exact[1] = std::string(
"N2");
 
   62         std::vector<std::string> str_1_split;
 
   64         this->
test_string( str_1_split, test_1_split_exact );
 
   68         std::string str_2(
"N+C(s)->CN");
 
   69         std::vector<std::string> test_2_split_exact(2);
 
   70         test_2_split_exact[0] = std::string(
"N+C(s)");
 
   71         test_2_split_exact[1] = std::string(
"CN");
 
   73         std::vector<std::string> str_2_split;
 
   75         this->
test_string( str_2_split, test_2_split_exact );
 
   79         std::string str_3(
"u:v:w:T:p:w_N:w_N2:p0");
 
   80         std::vector<std::string> test_3_split_exact(8);
 
   81         test_3_split_exact[0] = std::string(
"u");
 
   82         test_3_split_exact[1] = std::string(
"v");
 
   83         test_3_split_exact[2] = std::string(
"w");
 
   84         test_3_split_exact[3] = std::string(
"T");
 
   85         test_3_split_exact[4] = std::string(
"p");
 
   86         test_3_split_exact[5] = std::string(
"w_N");
 
   87         test_3_split_exact[6] = std::string(
"w_N2");
 
   88         test_3_split_exact[7] = std::string(
"p0");
 
   90         std::vector<std::string> str_3_split;
 
   92         this->
test_string( str_3_split, test_3_split_exact );
 
   96         std::string str_4(
"u v w T p w_N w_N2 p0");
 
   97         std::vector<std::string> test_4_split_exact(8);
 
   98         test_4_split_exact[0] = std::string(
"u");
 
   99         test_4_split_exact[1] = std::string(
"v");
 
  100         test_4_split_exact[2] = std::string(
"w");
 
  101         test_4_split_exact[3] = std::string(
"T");
 
  102         test_4_split_exact[4] = std::string(
"p");
 
  103         test_4_split_exact[5] = std::string(
"w_N");
 
  104         test_4_split_exact[6] = std::string(
"w_N2");
 
  105         test_4_split_exact[7] = std::string(
"p0");
 
  107         std::vector<std::string> str_4_split;
 
  109         this->
test_string( str_4_split, test_4_split_exact );
 
void test_string(const std::vector< std::string > &test, const std::vector< std::string > &exact)
 
void split_string(const std::string &input, const std::string &delimiter, std::vector< std::string > &results)