Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-robertson authored and jmarrec committed Jun 30, 2023
1 parent 500574f commit e935dae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/energyplus/Test/ScheduleInterval_GTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1873,7 +1873,7 @@ TEST_F(EnergyPlusFixture, ScheduleFileRelativePath) {
EXPECT_EQ(1u, model.getConcreteModelObjects<ExternalFile>().size());
ExternalFile externalfile = schedule.externalFile();
EXPECT_EQ(1u, externalfile.scheduleFiles().size());
EXPECT_EQ(openstudio::toString(p), externalfile.fileName());
EXPECT_EQ(openstudio::toString(p.filename()), externalfile.fileName());
EXPECT_TRUE(toPath(externalfile.fileName()).is_relative());
EXPECT_FALSE(externalfile.filePath().is_relative());
EXPECT_NE(toPath(externalfile.fileName()), externalfile.filePath());
Expand All @@ -1895,7 +1895,7 @@ TEST_F(EnergyPlusFixture, ScheduleFileRelativePath) {
EXPECT_EQ(0u, model.getConcreteModelObjects<ExternalFile>().size());
EXPECT_EQ(0u, model.getConcreteModelObjects<ScheduleFile>().size());

path p = toPath("../../../model/schedulefile.csv");
path p = toPath("../../../resources/model/schedulefile.csv");
EXPECT_TRUE(p.is_relative());

boost::optional<ExternalFile> external_file = ExternalFile::getExternalFile(model, openstudio::toString(p));
Expand All @@ -1905,7 +1905,7 @@ TEST_F(EnergyPlusFixture, ScheduleFileRelativePath) {
EXPECT_EQ(1u, model.getConcreteModelObjects<ExternalFile>().size());
ExternalFile externalfile = schedule.externalFile();
EXPECT_EQ(1u, externalfile.scheduleFiles().size());
EXPECT_EQ(openstudio::toString(p), externalfile.fileName());
EXPECT_EQ(openstudio::toString(p.filename()), externalfile.fileName());
EXPECT_TRUE(toPath(externalfile.fileName()).is_relative());
EXPECT_FALSE(externalfile.filePath().is_relative());
EXPECT_NE(toPath(externalfile.fileName()), externalfile.filePath());
Expand Down

0 comments on commit e935dae

Please sign in to comment.