]> git.donarmstrong.com Git - lilypond.git/blob - flower/test-string.cc
Issue 2787: Sanitize usage of -DDEBUG, -DNDEBUG and assert
[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 FUNC (string_split_join)
17 {
18   string orig = "a/bbbb/cc//d";
19   vector<string> splits = string_split (orig, '/');
20   string loop = string_join (splits, "/");
21   EQUAL (orig, loop);
22   EQUAL (splits.size (), size_t (5));
23 }