Skip to content

Commit

Permalink
Remove no_throw test.
Browse files Browse the repository at this point in the history
  • Loading branch information
spahrenk committed Oct 29, 2024
1 parent b816b0c commit 52bdc86
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/unit_tests/sizingFractionsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ TEST(SizingFractionsTest, TamScalable_SP_SizingFract)
double aquaFrac, useableFrac;
const double aquaFrac_answer = 4. / logicSize;

EXPECT_NO_THROW(hpwh.getSizingFractions(aquaFrac, useableFrac));
hpwh.getSizingFractions(aquaFrac, useableFrac);
EXPECT_NEAR(aquaFrac, aquaFrac_answer, tol);
EXPECT_NEAR(useableFrac, 1. - 1. / logicSize, tol);
}
Expand All @@ -40,7 +40,7 @@ TEST(SizingFractionsTest, Sanden80_SizingFract)
double aquaFrac, useableFrac;
const double aquaFrac_answer = 8. / logicSize;

EXPECT_NO_THROW(hpwh.getSizingFractions(aquaFrac, useableFrac));
hpwh.getSizingFractions(aquaFrac, useableFrac);
EXPECT_NEAR(aquaFrac, aquaFrac_answer, tol);
EXPECT_NEAR(useableFrac, 1. - 1. / logicSize, tol);
}
Expand All @@ -58,7 +58,7 @@ TEST(SizingFractionsTest, ColmacCxV_5_SP_SizingFract)
double aquaFrac, useableFrac;
const double aquaFrac_answer = 4. / logicSize;

EXPECT_NO_THROW(hpwh.getSizingFractions(aquaFrac, useableFrac));
hpwh.getSizingFractions(aquaFrac, useableFrac);
EXPECT_NEAR(aquaFrac, aquaFrac_answer, tol);
EXPECT_NEAR(useableFrac, 1. - 1. / logicSize, tol);
}
Expand All @@ -76,7 +76,7 @@ TEST(SizingFractionsTest, AOSmithHPTU50_SizingFract)
double aquaFrac, useableFrac;
const double aquaFrac_answer = (1. + 2. + 3. + 4.) / 4. / logicSize;

EXPECT_NO_THROW(hpwh.getSizingFractions(aquaFrac, useableFrac));
hpwh.getSizingFractions(aquaFrac, useableFrac);
EXPECT_NEAR(aquaFrac, aquaFrac_answer, tol);
EXPECT_NEAR(useableFrac, 1., tol);
}
Expand All @@ -94,7 +94,7 @@ TEST(SizingFractionsTest, GE_SizingFract)
double aquaFrac, useableFrac;
const double aquaFrac_answer = (1. + 2. + 3. + 4.) / 4. / logicSize;

EXPECT_NO_THROW(hpwh.getSizingFractions(aquaFrac, useableFrac));
hpwh.getSizingFractions(aquaFrac, useableFrac);
EXPECT_NEAR(aquaFrac, aquaFrac_answer, tol);
EXPECT_NEAR(useableFrac, 1., tol);
}
Expand All @@ -112,7 +112,7 @@ TEST(SizingFractionsTest, Stiebel220e_SizingFract)
double aquaFrac, useableFrac;
const double aquaFrac_answer = (5. + 6.) / 2. / logicSize;

EXPECT_NO_THROW(hpwh.getSizingFractions(aquaFrac, useableFrac));
hpwh.getSizingFractions(aquaFrac, useableFrac);
EXPECT_NEAR(aquaFrac, aquaFrac_answer, tol);
EXPECT_NEAR(useableFrac, 1. - 1. / logicSize, tol);
}
Expand Down

0 comments on commit 52bdc86

Please sign in to comment.