mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update io::path::normalized()
This commit is contained in:
parent
596132ebe2
commit
b1740bf7eb
3 changed files with 63 additions and 23 deletions
|
|
@ -12,3 +12,9 @@ TEST(Path, Path) {
|
|||
EXPECT_EQ(p / "child", "entry_point:path/file.ext/child");
|
||||
EXPECT_EQ(p.parent(), "entry_point:path");
|
||||
}
|
||||
|
||||
TEST(Path, DotElements) {
|
||||
io::path p("entry_point:a/b/c/../../d/e/../");
|
||||
EXPECT_EQ(p.normalized(), "entry_point:a/d");
|
||||
EXPECT_EQ(io::path("test:a///b//////c/").parent(), io::path("test:a///b"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue