@@ -260,21 +260,19 @@ TEST_CASE("GroupSlicerMismatchedGroups")
260260 auto s = slices.updateCacheEntry (0 , trkTable);
261261 o2::framework::GroupSlicer g (e, tt, slices);
262262
263- auto count = 0 ;
264263 for (auto & slice : g) {
265264 auto as = slice.associatedTables ();
266265 auto gg = slice.groupingElement ();
267- REQUIRE (gg.globalIndex () == count );
266+ REQUIRE (gg.globalIndex () == ( int64_t )slice. position );
268267 auto trks = std::get<aod::TrksX>(as);
269- if (count == 3 || count == 10 || count == 12 || count == 16 || count == 19 ) {
268+ if (slice. position == 3 || slice. position == 10 || slice. position == 12 || slice. position == 16 || slice. position == 19 ) {
270269 REQUIRE (trks.size () == 0 );
271270 } else {
272271 REQUIRE (trks.size () == 10 );
273272 }
274273 for (auto & trk : trks) {
275- REQUIRE (trk.eventId () == count );
274+ REQUIRE (trk.eventId () == ( int64_t )slice. position );
276275 }
277- ++count;
278276 }
279277}
280278
@@ -510,7 +508,7 @@ TEST_CASE("GroupSlicerMismatchedUnsortedFilteredGroupsWithSelfIndex")
510508{
511509 TableBuilder builderE;
512510 auto evtsWriter = builderE.cursor <aod::Events>();
513- for (auto i = 0 ; i < 20 ; ++i) {
511+ for (auto i = 0 ; i < 10 ; ++i) {
514512 evtsWriter (0 , i, 0 .5f * i, 2 .f * i, 3 .f * i);
515513 }
516514 auto evtTable = builderE.finalize ();
@@ -523,13 +521,12 @@ TEST_CASE("GroupSlicerMismatchedUnsortedFilteredGroupsWithSelfIndex")
523521 std::uniform_int_distribution<> distrib (0 , 99 );
524522
525523 for (auto i = 0 ; i < 100 ; ++i) {
526-
527524 filler[0 ] = distrib (gen);
528525 filler[1 ] = distrib (gen);
529526 if (filler[0 ] > filler[1 ]) {
530527 std::swap (filler[0 ], filler[1 ]);
531528 }
532- partsWriter (0 , std::floor (i / 10 .), i, filler);
529+ partsWriter (0 , std::floor ( i / 10 .), i, filler);
533530 }
534531 auto partsTable = builderP.finalize ();
535532
@@ -541,7 +538,6 @@ TEST_CASE("GroupSlicerMismatchedUnsortedFilteredGroupsWithSelfIndex")
541538 auto thingsTable = builderT.finalize ();
542539
543540 aod::Events e{evtTable};
544- // aod::Parts p{partsTable};
545541 aod::Things t{thingsTable};
546542 using FilteredParts = soa::Filtered<aod::Parts>;
547543 auto size = distrib (gen);
0 commit comments