Skip to content

Commit

Permalink
add recipes to tests to avoid undesired transmutation
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearkatie committed Jul 18, 2024
1 parent 2bbf4bc commit 2bc9bf4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/source_tests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,14 @@ TEST_F(SourceTest, Package) {

std::string config =
"<outcommod>commod</outcommod>"
"<outrecipe>recipe</outrecipe>"
"<package>testpackage</package>"
"<throughput>5</throughput>";

int simdur = 3;
cyclus::MockSim sim(cyclus::AgentSpec (":cycamore:Source"), config, simdur);

sim.context()->AddRecipe(recipe_name, recipe);
sim.context()->AddPackage(package_name, 3, 4, "first");
package = sim.context()->GetPackage(package_name);

Expand All @@ -193,13 +195,15 @@ TEST_F(SourceTest, TransportUnit) {

std::string config =
"<outcommod>commod</outcommod>"
"<outrecipe>recipe</outrecipe>"
"<package>testpackage</package>"
"<transport_unit>testtu</transport_unit>"
"<throughput>10</throughput>";

int simdur = 2;
cyclus::MockSim sim(cyclus::AgentSpec (":cycamore:Source"), config, simdur);

sim.context()->AddRecipe(recipe_name, recipe);
sim.context()->AddPackage(package_name, 3, 4, "equal");
package = sim.context()->GetPackage(package_name);
sim.context()->AddTransportUnit(tu_name, 2, 2);
Expand Down

0 comments on commit 2bc9bf4

Please sign in to comment.