From d88ed3f2ee2fc81680550b576140982235db4a4e Mon Sep 17 00:00:00 2001 From: ruevs Date: Wed, 15 Nov 2023 23:55:58 +0200 Subject: [PATCH] Adjust the test suite to match the new behaviour of Path::Join. --- test/core/path/test.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/core/path/test.cpp b/test/core/path/test.cpp index 86accf1f..90ff1245 100644 --- a/test/core/path/test.cpp +++ b/test/core/path/test.cpp @@ -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) {