From 7345dea8fe538472154fff2d990cc57a3aa177a3 Mon Sep 17 00:00:00 2001 From: Joe Robertson Date: Fri, 27 Oct 2023 08:37:56 -0700 Subject: [PATCH] Update new ft tests. --- src/energyplus/Test/ScheduleInterval_GTest.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/energyplus/Test/ScheduleInterval_GTest.cpp b/src/energyplus/Test/ScheduleInterval_GTest.cpp index d101afeadac..9b40e702b2b 100644 --- a/src/energyplus/Test/ScheduleInterval_GTest.cpp +++ b/src/energyplus/Test/ScheduleInterval_GTest.cpp @@ -1888,8 +1888,8 @@ TEST_F(EnergyPlusFixture, ScheduleFileRelativePath) { boost::optional fileName = objects[0].getString(2); // File Name ASSERT_TRUE(fileName); - EXPECT_FALSE(toPath(fileName.get()).is_relative()); // abs path - EXPECT_EQ(externalfile.filePath(), fileName.get()); // abs path + EXPECT_TRUE(toPath(fileName.get()).is_relative()); // rel path + EXPECT_NE(externalfile.filePath(), fileName.get()); } // ScheduleFile(external_file(/rel/path)) @@ -1923,8 +1923,8 @@ TEST_F(EnergyPlusFixture, ScheduleFileRelativePath) { boost::optional fileName = objects[0].getString(2); // File Name ASSERT_TRUE(fileName); - EXPECT_FALSE(toPath(fileName.get()).is_relative()); // abs path - EXPECT_EQ(externalfile.filePath(), fileName.get()); // abs path + EXPECT_TRUE(toPath(fileName.get()).is_relative()); // rel path + EXPECT_NE(externalfile.filePath(), fileName.get()); } // ScheduleFile(model, /abs/path) @@ -1957,7 +1957,7 @@ TEST_F(EnergyPlusFixture, ScheduleFileRelativePath) { boost::optional fileName = objects[0].getString(2); // File Name ASSERT_TRUE(fileName); EXPECT_FALSE(toPath(fileName.get()).is_relative()); // abs path - EXPECT_EQ(externalfile.filePath(), fileName.get()); // abs path + EXPECT_EQ(externalfile.filePath(), fileName.get()); } // ScheduleFile(model, /rel/path) @@ -1989,7 +1989,7 @@ TEST_F(EnergyPlusFixture, ScheduleFileRelativePath) { boost::optional fileName = objects[0].getString(2); // File Name ASSERT_TRUE(fileName); - EXPECT_TRUE(toPath(fileName.get()).is_relative()); // rel path - EXPECT_EQ(externalfile.filePath(), fileName.get()); // rel path + EXPECT_TRUE(toPath(fileName.get()).is_relative()); // rel path + EXPECT_EQ(externalfile.filePath(), fileName.get()); } }