fix Path::ext() when new_ext == ""

This commit is contained in:
josh committed 2014-06-22 21:01:38 -04:00
1 parent a1e9c30af2
commit cae4b077d9
2 files changed
+6 -1

No files matched your search

+1
View File
@@ -49,6 +49,7 @@ TEST(PathTest, ext)
EXPECT_EQ("file.h", Path("file.c").ext("h")->to_s());
EXPECT_EQ("/some/crazy/dir/foo.txt", Path("/some/crazy/dir/foo").ext(".txt")->to_s());
EXPECT_EQ("/some/crazy/dir/foo.txt", Path("/some/crazy/dir/foo").ext("txt")->to_s());
EXPECT_EQ("C:/baz", Path("C:\\baz.xyz").ext("")->to_s());
}
TEST(PathTest, exists)