Fix Windows test cases (#1537)

This commit is contained in:
Ben Doherty
2019-08-20 15:36:22 -07:00
committed by GitHub
parent f8aa17c245
commit bd22bed2fb
3 changed files with 12 additions and 7 deletions

View File

@@ -173,6 +173,14 @@ TEST(WinPathTest, Concatenate) {
// Unix-style separators work too
r = root.concat("out/bin/foo/bar");
EXPECT_EQ("C:\\Volumes\\Replicant\\blue\\out\\bin\\foo\\bar", r.getPath());
r = "";
r = r.concat("foo\\bar");
EXPECT_EQ("foo\\bar", r.getPath());
r = "";
r.concatToSelf("foo\\bar");
EXPECT_EQ("foo\\bar", r.getPath());
}
TEST(PathTest, GetParent) {