]> git.lyx.org Git - lyx.git/blob - src/support/tests/check_filetools.cpp
4859f8db1848e5bdab14a63a7577d6ae735d398c
[lyx.git] / src / support / tests / check_filetools.cpp
1 #include "../filetools.h"
2
3 #include <iostream>
4
5
6 using namespace lyx::support;
7
8 using namespace std;
9
10 namespace lyx {
11         docstring const _(string const & s) { return from_ascii(s); }
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 }