update io::path::normalized()

This commit is contained in:
MihailRis
2025-02-05 14:56:45 +03:00
parent 596132ebe2
commit b1740bf7eb
3 changed files with 63 additions and 23 deletions
+6
View File
@@ -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"));
}