]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/test-file-name.cc
Release: bump Welcome versions.
[lilypond.git] / flower / test-file-name.cc
index edae635e822e618d37a18f5fe92433109180091a..adbaa52913e611fd386ac15d9e5b378830d6853a 100644 (file)
@@ -8,7 +8,7 @@ string slashify (string file_name);
 
 struct CaseB: public yaffut::Test<File_name, CaseB>
 {
-  CaseB(): File_name("123"){}
+  CaseB (): File_name ("123") {}
 };
 
 TEST_STRING (File_name, Mingw_slashify, "foe.ly")
@@ -34,3 +34,10 @@ TEST_STRING (File_name, Mingw_slashify_4, "\\tmp\\x.ly")
   string s = slashify (to_string ());
   EQUAL ("/tmp/x.ly", s);
 }
+
+TEST_STRING (File_name, Canonicalize, "foo//bar/..//bla//z.ly")
+{
+  string s = canonicalized ().to_string ();
+  EQUAL ("foo/bla/z.ly", s);
+}
+