From 12e8040b5e26ec1c5fa0ad05e938b1e7516e6739 Mon Sep 17 00:00:00 2001 From: tyneises Date: Fri, 1 Sep 2023 12:39:28 -0500 Subject: [PATCH] switch to shared_ptr, uncomment code, remove test returns --- test/main.cpp | 2 -- test/ssc_test/cmod_sco2_csp_system_test.cpp | 6 ------ 2 files changed, 8 deletions(-) diff --git a/test/main.cpp b/test/main.cpp index c4b8e86cd..e56528db6 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -63,8 +63,6 @@ GTEST_API_ int main(int argc, char **argv) { // run multiple test // ::testing::GTEST_FLAG(filter) = "CMPvwattsv8Integration_cmod_pvwattsv8.DefaultNoFinancialModel_cmod_pvwattsv8:CMPvwattsv8Integration_cmod_pvwattsv8.NonAnnual"; - ::testing::GTEST_FLAG(filter) = "sco2_tests*"; - int status = RUN_ALL_TESTS(); // sleep(10); //used for single test instruments leak detector on macOS diff --git a/test/ssc_test/cmod_sco2_csp_system_test.cpp b/test/ssc_test/cmod_sco2_csp_system_test.cpp index 7357d4372..68b079701 100644 --- a/test/ssc_test/cmod_sco2_csp_system_test.cpp +++ b/test/ssc_test/cmod_sco2_csp_system_test.cpp @@ -108,16 +108,10 @@ NAMESPACE_TEST(sco2_tests, SCO2Cycle, Parametrics) ssc_data_set_number(data, "is_design_air_cooler", 1); ssc_data_set_number(data, "eta_air_cooler_fan", 0.5); - CmodUnderTest sco2 = CmodUnderTest("sco2_csp_system", data); - int errors = sco2.RunModule(); - - - //bool errors = false; EXPECT_FALSE(errors); - if (!errors) { EXPECT_NEAR_FRAC(sco2.GetOutput("T_htf_cold_des"), 529.6897, kErrorToleranceLo);