]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/test-file-name.cc
Revert "Issue 4550 (2/2) Avoid "using namespace std;" in included files"
[lilypond.git] / flower / test-file-name.cc
index edae635e822e618d37a18f5fe92433109180091a..04ee34b51f8f60acb0c1c67a6ba8a0062b7e00b9 100644 (file)
@@ -3,12 +3,13 @@
 #include "yaffut-parameters.hh"
 
 using namespace std;
+using std::string;
 
 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 +35,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);
+}
+