mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
migrate from std::filesystem::path to io::path (WIP)
This commit is contained in:
parent
1e22882284
commit
e0314803c0
72 changed files with 1189 additions and 791 deletions
14
test/io/path.cpp
Normal file
14
test/io/path.cpp
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#include <gtest/gtest.h>
|
||||
|
||||
#include "io/path.hpp"
|
||||
|
||||
TEST(Path, Path) {
|
||||
io::path p("entry_point:path/file.ext");
|
||||
EXPECT_EQ(p, "entry_point:path/file.ext");
|
||||
EXPECT_EQ(p.pathPart(), "path/file.ext");
|
||||
EXPECT_EQ(p.name(), "file.ext");
|
||||
EXPECT_EQ(p.extension(), ".ext");
|
||||
EXPECT_EQ(p.entryPoint(), "entry_point");
|
||||
EXPECT_EQ(p / "child", "entry_point:path/file.ext/child");
|
||||
EXPECT_EQ(p.parent(), "entry_point:path");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue