Skip to content

Commit e44d167

Browse files
eguiraudbluehood
authored andcommitted
[TDF] Add regression test for ROOT-9232
One entry is lost when multiple actions hang from the same Range, for all but the first processed action.
1 parent 65f9ade commit e44d167

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tree/treeplayer/test/dataframe/dataframe_regression_tests.hxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ TEST(TEST_CATEGORY, Ranges)
9090

9191
EXPECT_DOUBLE_EQ(*fromARange, 20);
9292
EXPECT_DOUBLE_EQ(*fromAFilter, 4);
93+
94+
// reaching stop with multiple actions to be processed -- remaining actions must be processed for this last entry
95+
auto ranged = d.Range(0,3);
96+
auto c1 = ranged.Count();
97+
auto c2 = ranged.Count();
98+
EXPECT_EQ(*c1, 3ull);
99+
EXPECT_EQ(*c2, *c1);
93100
}
94101
#endif
95102

0 commit comments

Comments
 (0)