summaryrefslogtreecommitdiff
path: root/flower/test-string.cc
blob: 5ed243fb084d9812694446c6d00af2f3babdabe9 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#define STD_VECTOR 1

#define HAVE_BOOST_LAMBDA 1
#include "std-vector.hh"

#include <iostream>

#include "yaffut.hh"

#if !STD_VECTOR
#define vector flower_vector
#endif

using namespace std;

FUNC (string_split_join)
{
  string orig = "a/bbbb/cc//d";
  vector<string> splits = string_split (orig, '/');
  string loop = string_join (splits, "/");
  EQUAL (orig, loop);
  EQUAL (splits.size (), size_t (5));
}