Skip to content

Commit

Permalink
test_pruning.cpp: Add new test
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Jul 4, 2024
1 parent 48bde8d commit 93a3964
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions core/test/test_pruning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,19 @@ TEST_F(Pruning, PropagateIntoContainer) {
EXPECT_EQ(con->runs_, 0u);
}

TEST_F(Pruning, PropagateIntoContainerAndReactivate) {
add(t, new GeneratorMockup({ 0 }));

auto serial = add(t, new SerialContainer());
auto con = add(*serial, new ConnectMockup({ 10, 20 }));
add(*serial, new GeneratorMockup({ 0, 1 }));

add(t, new ForwardMockup({ INF, 0 }));

EXPECT_TRUE(t.plan());
EXPECT_EQ(con->runs_, 1u);
}

TEST_F(Pruning, PropagateFromContainerPull) {
auto back = add(t, new BackwardMockup());
add(t, new BackwardMockup());
Expand Down

0 comments on commit 93a3964

Please sign in to comment.