Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
katyhuff authored May 31, 2019
2 parents 06ab278 + 1b82c83 commit a2105d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/reactor_tests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,6 @@ TEST(ReactorTests, ByProduct) {
conds.push_back(Cond("Value", "==", 0));
qr = sim.db().Query("ReactorSideProducts", &conds);
EXPECT_EQ(5, qr.rows.size());

}

TEST(ReactorTests, MultipleByProduct) {
Expand All @@ -706,18 +705,19 @@ TEST(ReactorTests, MultipleByProduct) {
sim.AddRecipe("spentuox", c_spentuox());
int id = sim.Run();


std::vector<Cond> conds;
// test if it produces heat when reactor is running
int quantity = 10;
conds.push_back(Cond("Product", "==", "process_heat"));
conds.push_back(Cond("Product", "==", std::string("process_heat")));
conds.push_back(Cond("Value", "==", quantity));
QueryResult qr = sim.db().Query("ReactorSideProducts", &conds);
EXPECT_EQ(5, qr.rows.size());

// test if it produces water when reactor is running
conds.clear();
quantity = 100;
conds.push_back(Cond("Product", "==", "water"));
conds.push_back(Cond("Product", "==", std::string("water")));
conds.push_back(Cond("Value", "==", quantity));
qr = sim.db().Query("ReactorSideProducts", &conds);
EXPECT_EQ(5, qr.rows.size());
Expand Down

0 comments on commit a2105d3

Please sign in to comment.