18 lines
447 B
C++
18 lines
447 B
C++
|
#include "FileSystemPath.h"
|
||
|
|
||
|
#include "TestFramework.h"
|
||
|
//#include "TestUtils.h"
|
||
|
#include <iostream>
|
||
|
|
||
|
TEST_CASE(FileSystemPath_Join, "core")
|
||
|
{
|
||
|
FileSystemPath path("/home/jgrogan/code/compilz/src/src");
|
||
|
auto new_path = path.join("test");
|
||
|
REQUIRE(new_path.str() == "/home/jgrogan/code/compilz/src/src/test");
|
||
|
}
|
||
|
|
||
|
TEST_CASE(FileSystemPath_Extension, "core")
|
||
|
{
|
||
|
FileSystemPath path("test.dat");
|
||
|
REQUIRE(path.extension() == ".dat");
|
||
|
}
|