|
|
@@ -97,7 +97,7 @@ bool testFilePathIsAbsolute() { |
|
|
|
RETURN_FALSE("isAbsolute() failure");
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!CodeDweller::FilePath::isAbsolute("x:\\sll\lll")) {
|
|
|
|
if (!CodeDweller::FilePath::isAbsolute("x:\\sll\\lll")) {
|
|
|
|
RETURN_FALSE("isAbsolute() failure");
|
|
|
|
}
|
|
|
|
|
|
|
@@ -109,7 +109,7 @@ bool testFilePathIsAbsolute() { |
|
|
|
RETURN_FALSE("isAbsolute() failure");
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!CodeDweller::FilePath::isAbsolute("\\sll\lll")) {
|
|
|
|
if (!CodeDweller::FilePath::isAbsolute("\\sll\\lll")) {
|
|
|
|
RETURN_FALSE("isAbsolute() failure");
|
|
|
|
}
|
|
|
|
#endif
|
|
|
@@ -196,9 +196,15 @@ bool testFilePathJoin() { |
|
|
|
RETURN_FALSE("join() failure");
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
std::string absComponent = "\\abs";
|
|
|
|
#else
|
|
|
|
std::string absComponent = "/abs";
|
|
|
|
#endif
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
(void) CodeDweller::FilePath::join({"rel", "/abs"});
|
|
|
|
(void) CodeDweller::FilePath::join({"rel", absComponent});
|
|
|
|
|
|
|
|
NO_EXCEPTION_TERM("join()");
|
|
|
|
return false;
|
|
|
@@ -209,7 +215,7 @@ bool testFilePathJoin() { |
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
(void) CodeDweller::FilePath::join({"rel", "/abs", "otherrel"});
|
|
|
|
(void) CodeDweller::FilePath::join({"rel", absComponent, "otherrel"});
|
|
|
|
|
|
|
|
NO_EXCEPTION_TERM("join()");
|
|
|
|
return false;
|