X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Ftest-file-name.cc;h=9bd06f121cf7201a1a7feea1874f5d0308ba2f5f;hb=6c79726094c01c51b64b5b0bb74faff6eaf5cd65;hp=edae635e822e618d37a18f5fe92433109180091a;hpb=175da222fd01361eb901ba2c55d9b2574126bf41;p=lilypond.git diff --git a/flower/test-file-name.cc b/flower/test-file-name.cc index edae635e82..9bd06f121c 100644 --- a/flower/test-file-name.cc +++ b/flower/test-file-name.cc @@ -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); +} +