]> git.lyx.org Git - lyx.git/blob - src/support/tests/check_filetools.cpp
Reorder a bit status messages, but they are still cleared at the end of LyXFunc
[lyx.git] / src / support / tests / check_filetools.cpp
1 #include <config.h>
2
3 #include "../filetools.h"
4 #include "../FileName.h"
5
6 #include <iostream>
7
8
9 using namespace lyx::support;
10
11 using namespace std;
12
13 namespace lyx {
14         docstring const _(string const & s) { return from_ascii(s); }
15 }
16
17 void test_normalizePath()
18 {
19         cout << FileName("/foo/../bar").absFilename() << endl;
20         cout << FileName("/foo/./bar").absFilename() << endl;
21         cout << FileName("/foo//bar").absFilename() << endl;
22 }
23
24 int main()
25 {
26         test_normalizePath();
27 }