add Path::exists()
This commit is contained in:
1 parent
b55d8d0f09
commit
e3cb7b15b4
3 files changed
+16
No files matched your search
@@ -38,3 +38,9 @@ TEST(PathTest, dirname)
|
||||
EXPECT_EQ(".", Path("folder//").dirname().to_s());
|
||||
EXPECT_EQ("a", Path("a/b").dirname().to_s());
|
||||
}
|
||||
|
||||
TEST(PathTest, exists)
|
||||
{
|
||||
EXPECT_TRUE(Path("runtime").exists());
|
||||
EXPECT_FALSE(Path("foobar").exists());
|
||||
}
|
||||
Reference in new issue
Block a user