fix Path::ext() when new_ext == ""
This commit is contained in:
1 parent
a1e9c30af2
commit
cae4b077d9
2 files changed
+6
-1
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user