]> git.donarmstrong.com Git - lilypond.git/blob - flower/test-string.cc
Merge branch 'master' of ssh://kainhofer@git.sv.gnu.org/srv/git/lilypond into kainhofer
[lilypond.git] / flower / test-string.cc
1 #define STD_VECTOR 1
2
3 #define HAVE_BOOST_LAMBDA 1
4 #include "std-vector.hh"
5
6 #include <iostream>
7
8 #include "yaffut.hh"
9
10 #if !STD_VECTOR
11 #define vector flower_vector
12 #endif
13
14 using namespace std;
15
16
17 FUNC (string_split_join)
18 {
19   string orig = "a/bbbb/cc//d";
20   vector<string> splits = string_split (orig, '/');
21   string loop = string_join (splits, "/");
22   EQUAL(orig, loop);
23   EQUAL(splits.size (), size_t (5));
24 }