Skip to content

Commit 93a3964

Browse files
committed
test_pruning.cpp: Add new test
1 parent 48bde8d commit 93a3964

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

core/test/test_pruning.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,19 @@ TEST_F(Pruning, PropagateIntoContainer) {
127127
EXPECT_EQ(con->runs_, 0u);
128128
}
129129

130+
TEST_F(Pruning, PropagateIntoContainerAndReactivate) {
131+
add(t, new GeneratorMockup({ 0 }));
132+
133+
auto serial = add(t, new SerialContainer());
134+
auto con = add(*serial, new ConnectMockup({ 10, 20 }));
135+
add(*serial, new GeneratorMockup({ 0, 1 }));
136+
137+
add(t, new ForwardMockup({ INF, 0 }));
138+
139+
EXPECT_TRUE(t.plan());
140+
EXPECT_EQ(con->runs_, 1u);
141+
}
142+
130143
TEST_F(Pruning, PropagateFromContainerPull) {
131144
auto back = add(t, new BackwardMockup());
132145
add(t, new BackwardMockup());

0 commit comments

Comments
 (0)