add Path::exists()

This commit is contained in:
josh committed 2014-06-22 15:30:05 -04:00
1 parent b55d8d0f09
commit e3cb7b15b4
3 files changed
+16

No files matched your search

+6
View File
@@ -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());
}