X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Ftests%2Fcheck_filetools.cpp;h=ad657facb100bc63be19600beb70c772e3f55e5f;hb=c0000cc405063044fb4eca3f04ab35f69fe3dd74;hp=893c3a1f5aaf45e4098e4056b3a1ce24fd0556ab;hpb=ab47d8188ee66ddc737b137c8e06a79fb2a65c59;p=lyx.git diff --git a/src/support/tests/check_filetools.cpp b/src/support/tests/check_filetools.cpp index 893c3a1f5a..ad657facb1 100644 --- a/src/support/tests/check_filetools.cpp +++ b/src/support/tests/check_filetools.cpp @@ -1,3 +1,5 @@ +#include + #include "../filetools.h" #include "../FileName.h" @@ -8,15 +10,11 @@ using namespace lyx::support; using namespace std; -namespace lyx { - docstring const _(string const & s) { return from_ascii(s); } -} - void test_normalizePath() { - cout << FileName("/foo/../bar").absFilename() << endl; - cout << FileName("/foo/./bar").absFilename() << endl; - cout << FileName("/foo//bar").absFilename() << endl; + cout << FileName("/foo/../bar").absFileName() << endl; + cout << FileName("/foo/./bar").absFileName() << endl; + cout << FileName("/foo//bar").absFileName() << endl; } int main()