2009-07-14 10:37:17 +00:00
|
|
|
#include <config.h>
|
|
|
|
|
2006-03-05 18:11:11 +00:00
|
|
|
#include "../filetools.h"
|
2007-11-27 10:01:34 +00:00
|
|
|
#include "../FileName.h"
|
2006-03-05 18:11:11 +00:00
|
|
|
|
|
|
|
#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;
|
|
|
|
|
2006-04-08 22:31:11 +00:00
|
|
|
void test_normalizePath()
|
2006-03-05 18:11:11 +00:00
|
|
|
{
|
2010-04-21 01:19:36 +00:00
|
|
|
cout << FileName("/foo/../bar").absFileName() << endl;
|
|
|
|
cout << FileName("/foo/./bar").absFileName() << endl;
|
|
|
|
cout << FileName("/foo//bar").absFileName() << 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
|
|
|
}
|