Skip to content

Commit 2b28f0b

Browse files
committed
Test etes, ptes is_dispatch=1 only for reduction in lines covered
1 parent fcf4f22 commit 2b28f0b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

test/ssc_test/cmod_etes_etes_test.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,18 @@ NAMESPACE_TEST(etes_etes_test, EtesEtesCmod, Default_NoFinancial)
4444
{
4545
ssc_data_t defaults = etes_etes_defaults();
4646
CmodUnderTest etes_system = CmodUnderTest("etes_electric_resistance", defaults);
47+
/*
4748
etes_system.SetInput("is_dispatch", 0);
4849
int errors = etes_system.RunModule();
4950
double ann_energy = etes_system.GetOutput("annual_energy");
5051
EXPECT_FALSE(errors);
5152
if (!errors) {
5253
EXPECT_NEAR_FRAC(std::abs(etes_system.GetOutput("annual_energy")), std::abs(-739728801.), kErrorToleranceHi);
5354
}
54-
55+
*/
5556
etes_system.SetInput("is_dispatch", 1);
56-
errors = etes_system.RunModule();
57-
ann_energy = etes_system.GetOutput("annual_energy");
57+
int errors = etes_system.RunModule();
58+
double ann_energy = etes_system.GetOutput("annual_energy");
5859
EXPECT_FALSE(errors);
5960
if (!errors) {
6061
EXPECT_NEAR_FRAC(std::abs(etes_system.GetOutput("annual_energy")), std::abs(-497554825), kErrorToleranceHi);

test/ssc_test/cmod_etes_ptes_test.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,18 @@ NAMESPACE_TEST(etes_ptes_test, EtesPtesCmod, Default_NoFinancial)
4444
{
4545
ssc_data_t defaults = etes_ptes_defaults();
4646
CmodUnderTest ptes_system = CmodUnderTest("etes_ptes", defaults);
47+
/*
4748
ptes_system.SetInput("is_dispatch", 0);
4849
int errors = ptes_system.RunModule();
4950
double ann_energy = ptes_system.GetOutput("annual_energy");
5051
EXPECT_FALSE(errors);
5152
if (!errors) {
5253
EXPECT_NEAR_FRAC(std::abs(ptes_system.GetOutput("annual_energy")), std::abs(264339255.), kErrorToleranceHi);
5354
}
54-
55+
*/
5556
ptes_system.SetInput("is_dispatch", 1);
56-
errors = ptes_system.RunModule();
57-
ann_energy = ptes_system.GetOutput("annual_energy");
57+
int errors = ptes_system.RunModule();
58+
double ann_energy = ptes_system.GetOutput("annual_energy");
5859
EXPECT_FALSE(errors);
5960
if (!errors) {
6061
EXPECT_NEAR_FRAC(std::abs(ptes_system.GetOutput("annual_energy")), std::abs(202929176.), kErrorToleranceHi);

0 commit comments

Comments
 (0)