[Test] Fix compiler warnings in tests
This commit is contained in:
parent
1f231d1dd0
commit
7ee47585ae
2 changed files with 7 additions and 7 deletions
|
|
@ -201,7 +201,7 @@ TEST_F(KineticsFromScratch, undeclared_species)
|
|||
auto R = make_shared<ElementaryReaction>(reac, prod, rate);
|
||||
|
||||
ASSERT_THROW(kin.addReaction(R), CanteraError);
|
||||
ASSERT_EQ(0, kin.nReactions());
|
||||
ASSERT_EQ((size_t) 0, kin.nReactions());
|
||||
}
|
||||
|
||||
TEST_F(KineticsFromScratch, skip_undeclared_species)
|
||||
|
|
@ -213,7 +213,7 @@ TEST_F(KineticsFromScratch, skip_undeclared_species)
|
|||
|
||||
kin.skipUndeclaredSpecies(true);
|
||||
kin.addReaction(R);
|
||||
ASSERT_EQ(0, kin.nReactions());
|
||||
ASSERT_EQ((size_t) 0, kin.nReactions());
|
||||
}
|
||||
|
||||
TEST_F(KineticsFromScratch, negative_A_error)
|
||||
|
|
@ -224,7 +224,7 @@ TEST_F(KineticsFromScratch, negative_A_error)
|
|||
auto R = make_shared<ElementaryReaction>(reac, prod, rate);
|
||||
|
||||
ASSERT_THROW(kin.addReaction(R), CanteraError);
|
||||
ASSERT_EQ(0, kin.nReactions());
|
||||
ASSERT_EQ((size_t) 0, kin.nReactions());
|
||||
}
|
||||
|
||||
TEST_F(KineticsFromScratch, allow_negative_A)
|
||||
|
|
@ -248,7 +248,7 @@ TEST_F(KineticsFromScratch, invalid_reversible_with_orders)
|
|||
R->orders["H2"] = 0.5;
|
||||
|
||||
ASSERT_THROW(kin.addReaction(R), CanteraError);
|
||||
ASSERT_EQ(0, kin.nReactions());
|
||||
ASSERT_EQ((size_t) 0, kin.nReactions());
|
||||
}
|
||||
|
||||
TEST_F(KineticsFromScratch, negative_order_override)
|
||||
|
|
@ -275,7 +275,7 @@ TEST_F(KineticsFromScratch, invalid_negative_orders)
|
|||
R->orders["H2"] = - 0.5;
|
||||
|
||||
ASSERT_THROW(kin.addReaction(R), CanteraError);
|
||||
ASSERT_EQ(0, kin.nReactions());
|
||||
ASSERT_EQ((size_t) 0, kin.nReactions());
|
||||
}
|
||||
|
||||
TEST_F(KineticsFromScratch, nonreactant_order_override)
|
||||
|
|
@ -302,7 +302,7 @@ TEST_F(KineticsFromScratch, invalid_nonreactant_order)
|
|||
R->orders["OH"] = 0.5;
|
||||
|
||||
ASSERT_THROW(kin.addReaction(R), CanteraError);
|
||||
ASSERT_EQ(0, kin.nReactions());
|
||||
ASSERT_EQ((size_t) 0, kin.nReactions());
|
||||
}
|
||||
|
||||
class InterfaceKineticsFromScratch : public testing::Test
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@ TEST(InterfaceReaction, CoverageDependency) {
|
|||
SurfPhase surf("ptcombust.cti", "Pt_surf");
|
||||
std::vector<ThermoPhase*> phases { &gas, &surf };
|
||||
shared_ptr<Kinetics> kin(newKineticsMgr(surf.xml(), phases));
|
||||
ASSERT_EQ(kin->nReactions(), 25);
|
||||
ASSERT_EQ(kin->nReactions(), (size_t) 25);
|
||||
|
||||
double T = 500;
|
||||
surf.setState_TP(T, 101325);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue