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