lyx_mirror/src/support/tests/filetools.C

31 lines
631 B
C++
Raw Normal View History

#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();
}