Skip to content

Commit

Permalink
update unit test find_eqvar_name and value
Browse files Browse the repository at this point in the history
  • Loading branch information
Yujie Xu committed Sep 13, 2024
1 parent 5e96092 commit b96c3a5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tst/EnergyPlus/unit/ExtendedHI.unit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,13 @@ TEST_F(EnergyPlusFixture, extendedHI_find_eqvar)
{0.02073, 0.00466, 0.01213, 0.0196, 0.02707, 0.03453},
{0.00147, 0.01691, 0.03395, 0.051, 0.06804, 0.08509}};

int eqvar_name = 0;
Real64 eqvar_value = 0.0;
for (size_t i = 0; i < Ta_values.size(); ++i) {
for (size_t j = 0; j < RH_values.size(); ++j) {
EXPECT_EQ(find_eqvar_name(*state, Ta_values[i], RH_values[j]), result_0[i][j]);
EXPECT_NEAR(find_eqvar_value(*state, Ta_values[i], RH_values[j]), result_1[i][j], tol);
eqvar_value = find_eqvar_name_and_value(*state, Ta_values[i], RH_values[j], eqvar_name);
EXPECT_EQ(eqvar_name, result_0[i][j]);
EXPECT_NEAR(eqvar_value, result_1[i][j], tol);
}
}
}
Expand Down

4 comments on commit b96c3a5

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extendedHIspeedFix (Unknown) - x86_64-Linux-Ubuntu-22.04-gcc-11.4: OK (2923 of 2923 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extendedHIspeedFix (Unknown) - Win64-Windows-10-VisualStudio-16: OK (2901 of 2901 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extendedHIspeedFix (Unknown) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-UnitTestsCoverage-RelWithDebInfo: OK (2107 of 2107 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extendedHIspeedFix (Unknown) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-IntegrationCoverage-RelWithDebInfo: OK (799 of 799 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

Please sign in to comment.