2006-03-05 18:11:11 +00:00
|
|
|
#include "../filetools.h"
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
2006-03-05 18:11:11 +00:00
|
|
|
using namespace lyx::support;
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
2007-02-26 09:31:01 +00:00
|
|
|
namespace lyx {
|
|
|
|
docstring const _(string const & s) { return from_ascii(s); }
|
2006-03-05 18:11:11 +00:00
|
|
|
}
|
|
|
|
|
2006-04-08 22:31:11 +00:00
|
|
|
void test_normalizePath()
|
2006-03-05 18:11:11 +00:00
|
|
|
{
|
2006-04-08 22:31:11 +00:00
|
|
|
cout << normalizePath("foo/../bar") << endl;
|
|
|
|
cout << normalizePath("foo/./bar") << endl;
|
|
|
|
cout << normalizePath("./foo/../bar") << endl;
|
|
|
|
cout << normalizePath("./foo/./bar") << endl;
|
|
|
|
cout << normalizePath("/foo/../bar") << endl;
|
|
|
|
cout << normalizePath("/foo/./bar") << endl;
|
|
|
|
cout << normalizePath("foo//bar") << endl;
|
|
|
|
cout << normalizePath("./foo//bar") << endl;
|
|
|
|
cout << normalizePath("/foo//bar") << endl;
|
2006-03-05 18:11:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
2006-04-08 22:31:11 +00:00
|
|
|
test_normalizePath();
|
2006-03-05 18:11:11 +00:00
|
|
|
}
|