Fixes Issue 1504, allowing feather beam line breaking.
[lilypond/patrick.git] / flower / test-file-name.cc
blob9bd06f121cf7201a1a7feea1874f5d0308ba2f5f
1 #include "file-name.hh"
3 #include "yaffut-parameters.hh"
5 using namespace std;
7 string slashify (string file_name);
9 struct CaseB: public yaffut::Test<File_name, CaseB>
11 CaseB(): File_name("123"){}
14 TEST_STRING (File_name, Mingw_slashify, "foe.ly")
16 string s = slashify (to_string ());
17 EQUAL (parameter_one_, s);
20 TEST_STRING (File_name, Mingw_slashify_2, "/tmp/x.ly")
22 string s = slashify (to_string ());
23 EQUAL (parameter_one_, s);
26 TEST_STRING (File_name, Mingw_slashify_3, "c:/tmp/x.ly")
28 string s = slashify (to_string ());
29 EQUAL (parameter_one_, s);
32 TEST_STRING (File_name, Mingw_slashify_4, "\\tmp\\x.ly")
34 string s = slashify (to_string ());
35 EQUAL ("/tmp/x.ly", s);
38 TEST_STRING (File_name, Canonicalize, "foo//bar/..//bla//z.ly")
40 string s = canonicalized ().to_string ();
41 EQUAL ("foo/bla/z.ly", s);