]> git.lyx.org Git - lyx.git/blob - src/support/tests/filetools.C
MacOSX compile fix.
[lyx.git] / src / support / tests / filetools.C
1 #include "../filetools.h"
2
3 #include <iostream>
4
5 using namespace lyx::support;
6
7 using namespace std;
8
9 string _(string const & str)
10 {
11         return str;
12 }
13
14 void test_normalizePath()
15 {
16         cout << normalizePath("foo/../bar") << endl;
17         cout << normalizePath("foo/./bar") << endl;
18         cout << normalizePath("./foo/../bar") << endl;
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 }
26
27 int main()
28 {
29         test_normalizePath();
30 }