Skip to content

Commit

Permalink
Adjust the test suite to match the new behaviour of Path::Join.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruevs authored and phkahler committed Nov 22, 2023
1 parent 6f7e45b commit d88ed3f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/core/path/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d88ed3f

Please sign in to comment.