Adjust the test suite to match the new behaviour of Path::Join.

pull/1430/head
ruevs 2023-11-15 23:55:58 +02:00 committed by Paul Kahler
parent 6f7e45ba9f
commit d88ed3f2ee
1 changed files with 4 additions and 2 deletions

View File

@ -125,11 +125,13 @@ TEST_CASE(join) {
CHECK_EQ_STR(path.Join(Path::From("bar")).raw, "foo" S "bar");
path = Path::From("");
CHECK_TRUE(path.Join(Path::From("bar")).IsEmpty());
CHECK_EQ_STR(path.Join(Path::From("bar")).raw, "." S "bar");
path = Path::From("foo");
CHECK_TRUE(path.Join(Path::From("")).IsEmpty());
CHECK_EQ_STR(path.Join(Path::From("")).raw, "foo" S);
path = Path::From("foo");
CHECK_TRUE(path.Join(Path::From(R S "bar")).IsEmpty());
path = Path::From("");
CHECK_EQ_STR(path.Join(Path::From("")).raw, "." S);
}
TEST_CASE(expand) {