You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdesvn/src/svnqt/tests/ckpath.cpp

25 lines
546 B

#include "src/svnqt/path.h"
#include <iostream>
int main(int,char**)
{
svn::Path pa("/test/foo/bar/");
if (pa.path()!=TQString("/test/foo/bar")) {
std::cout << "No cleanup of components" << std::endl;
return -1;
}
pa.removeLast();
if (pa.path()!=TQString("/test/foo")) {
std::cout<<"removeLast didn't work." << std::endl;
return -1;
}
unsigned j = 0;
while (pa.length()>0) {
std::cout << pa.path() << std::endl;
pa.removeLast();
++j;
}
return 0;
}