Support FilePaths instead of raw strings in XML code.
PiperOrigin-RevId: 655177026 Change-Id: I55b055551384b01ba7a4baa5d75fbe3329b7d25d
This commit is contained in:
committed by
Copybara-Service
parent
2d24c58819
commit
2746cb8559
@@ -46,6 +46,11 @@ TEST_F(UserUtilTest, PathReduce2) {
|
||||
EXPECT_EQ(path.Str(), "../hello/world/");
|
||||
}
|
||||
|
||||
TEST_F(UserUtilTest, PathReduce3) {
|
||||
FilePath path = FilePath("../../hello/world.txt");
|
||||
EXPECT_EQ(path.Str(), "../../hello/world.txt");
|
||||
}
|
||||
|
||||
TEST_F(UserUtilTest, PathReduceWin) {
|
||||
FilePath path = FilePath("C:\\hello\\..\\world");
|
||||
EXPECT_EQ(path.Str(), "C:\\world");
|
||||
|
||||
Reference in New Issue
Block a user