mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-17 16:34:18 +00:00
4dde959e6c
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30556 a592a061-630c-0410-9148-cb99ea01b6c8
28 lines
464 B
C++
28 lines
464 B
C++
#include <config.h>
|
|
|
|
#include "../filetools.h"
|
|
#include "../FileName.h"
|
|
|
|
#include <iostream>
|
|
|
|
|
|
using namespace lyx::support;
|
|
|
|
using namespace std;
|
|
|
|
namespace lyx {
|
|
docstring const _(string const & s) { return from_ascii(s); }
|
|
}
|
|
|
|
void test_normalizePath()
|
|
{
|
|
cout << FileName("/foo/../bar").absFilename() << endl;
|
|
cout << FileName("/foo/./bar").absFilename() << endl;
|
|
cout << FileName("/foo//bar").absFilename() << endl;
|
|
}
|
|
|
|
int main()
|
|
{
|
|
test_normalizePath();
|
|
}
|