]> git.lyx.org Git - lyx.git/blob - src/support/tests/filetools.C
remove unused stuff
[lyx.git] / src / support / tests / filetools.C
1 #include "../filetools.h"
2
3 #include <iostream>
4
5
6 namespace lyx {
7
8 using namespace lyx::support;
9
10 using namespace std;
11
12 string _(string const & str)
13 {
14         return str;
15 }
16
17 void test_normalizePath()
18 {
19         cout << normalizePath("foo/../bar") << endl;
20         cout << normalizePath("foo/./bar") << endl;
21         cout << normalizePath("./foo/../bar") << endl;
22         cout << normalizePath("./foo/./bar") << endl;
23         cout << normalizePath("/foo/../bar") << endl;
24         cout << normalizePath("/foo/./bar") << endl;
25         cout << normalizePath("foo//bar") << endl;
26         cout << normalizePath("./foo//bar") << endl;
27         cout << normalizePath("/foo//bar") << endl;
28 }
29
30 int main()
31 {
32         test_normalizePath();
33 }
34
35
36 } // namespace lyx