2006-03-05 18:11:11 +00:00
|
|
|
#include "../filetools.h"
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
using namespace lyx::support;
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
string _(string const & str)
|
|
|
|
{
|
|
|
|
return str;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|