]> git.lyx.org Git - features.git/blob - src/support/tests/filetools.cpp
move tex2lyx and client subdir handling to the main Makefile.am, so they won't be...
[features.git] / src / support / tests / 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 }