mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-17 16:34:18 +00:00
31 lines
634 B
C++
31 lines
634 B
C++
|
#include "../filetools.h"
|
||
|
|
||
|
#include <iostream>
|
||
|
|
||
|
using namespace lyx::support;
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
string _(string const & str)
|
||
|
{
|
||
|
return str;
|
||
|
}
|
||
|
|
||
|
void test_NormalizePath()
|
||
|
{
|
||
|
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;
|
||
|
}
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
test_NormalizePath();
|
||
|
}
|