Skip to content

Commit 65966b8

Browse files
committed
fix uninitialized var
1 parent ead50b6 commit 65966b8

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

tst/EnergyPlus/unit/EMSManager.unit.cc

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -966,19 +966,19 @@ TEST_F(EnergyPlusFixture, TestUnInitializedEMSVariable3)
966966
"Version," + DataStringGlobals::MatchVersion + ";",
967967

968968
"RunPeriod,",
969-
" Run Period 1, !- Name",
970-
" 1, !- Begin Month",
971-
" 1, !- Begin Day of Month",
972-
" 2007, !- Begin Year",
973-
" 1, !- End Month",
974-
" 1, !- End Day of Month",
975-
" 2007, !- End Year",
976-
" Monday, !- Day of Week for Start Day",
977-
" No, !- Use Weather File Holidays and Special Days",
978-
" No, !- Use Weather File Daylight Saving Period",
979-
" No, !- Apply Weekend Holiday Rule",
980-
" Yes, !- Use Weather File Rain Indicators",
981-
" Yes; !- Use Weather File Snow Indicators",
969+
" Run Period 1, !- Name",
970+
" 1, !- Begin Month",
971+
" 1, !- Begin Day of Month",
972+
" 2007, !- Begin Year",
973+
" 1, !- End Month",
974+
" 1, !- End Day of Month",
975+
" 2007, !- End Year",
976+
" Monday, !- Day of Week for Start Day",
977+
" No, !- Use Weather File Holidays and Special Days",
978+
" No, !- Use Weather File Daylight Saving Period",
979+
" No, !- Apply Weekend Holiday Rule",
980+
" Yes, !- Use Weather File Rain Indicators",
981+
" Yes; !- Use Weather File Snow Indicators",
982982

983983
"SimulationControl,",
984984
" No, !- Do Zone Sizing Calculation",
@@ -1065,12 +1065,11 @@ TEST_F(EnergyPlusFixture, TestUnInitializedEMSVariable3)
10651065
int wallSurfNum = Util::FindItemInList("WALL", state->dataSurface->Surface);
10661066
bool anyRan;
10671067
EMSManager::ManageEMS(*state, EMSManager::EMSCallFrom::BeginTimestepBeforePredictor, anyRan, ObjexxFCL::Optional_int_const());
1068-
// EXPECT_EQ(state->dataSurface->Surface(wallSurfNum).ViewFactorGround, 0.1);
1068+
EXPECT_EQ(state->dataSurface->Surface(wallSurfNum).ViewFactorGround, 0.1);
10691069

10701070
// Expect the variable to not yet be initialized, call EvaluateExpression and check argument
1071-
ErlValueType ReturnValue;
10721071
bool seriousErrorFound = false;
1073-
ReturnValue = RuntimeLanguageProcessor::EvaluateExpression(
1072+
ErlValueType ReturnValue = RuntimeLanguageProcessor::EvaluateExpression(
10741073
*state,
10751074
state->dataRuntimeLang->ErlStack(Util::FindItemInList("EV_DISCHARGE_PROGRAM", state->dataRuntimeLang->ErlStack)).Instruction(1).Argument2,
10761075
seriousErrorFound);

0 commit comments

Comments
 (0)