Skip to content

Commit

Permalink
Update new ft tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-robertson committed Oct 27, 2023
1 parent 247cdef commit 7345dea
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/energyplus/Test/ScheduleInterval_GTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1888,8 +1888,8 @@ TEST_F(EnergyPlusFixture, ScheduleFileRelativePath) {

boost::optional<std::string> 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))
Expand Down Expand Up @@ -1923,8 +1923,8 @@ TEST_F(EnergyPlusFixture, ScheduleFileRelativePath) {

boost::optional<std::string> 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)
Expand Down Expand Up @@ -1957,7 +1957,7 @@ TEST_F(EnergyPlusFixture, ScheduleFileRelativePath) {
boost::optional<std::string> 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)
Expand Down Expand Up @@ -1989,7 +1989,7 @@ TEST_F(EnergyPlusFixture, ScheduleFileRelativePath) {

boost::optional<std::string> 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());
}
}

0 comments on commit 7345dea

Please sign in to comment.