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;
|
|
|
|
|
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
|
|
|
{
|
2007-11-27 10:01:34 +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
|
|
|
}
|