ItemRangesIterator tests re-enabled.

This commit is contained in:
mlemanczyk committed 2023-04-30 22:04:01 +02:00
1 parent 9d2cb050d2
commit ac6d71686c
1 file changed
+6 -6
@@ -15,14 +15,14 @@ namespace Recyclable.CollectionsTests
var actual = new List<(int BlockIndex, int StartingItemIndex, long ItemsCount)>();
// Act
//ItemRangesIterator.Iterate(startingBlockIndex, blockSize, blockSizePow2BitShift, itemsCount, step, (searchInfo) =>
//{
// actual.Add((searchInfo.BlockIndex, searchInfo.StartingItemIndex, searchInfo.ItemsToSearchCount));
// return true;
//});
ItemRangesIterator.Iterate(startingBlockIndex, blockSize, blockSizePow2BitShift, itemsCount, step, (searchInfo) =>
{
actual.Add((searchInfo.BlockIndex, searchInfo.StartingItemIndex, searchInfo.ItemsToSearchCount));
return true;
});
// Validate
//_ = actual.Should().HaveCount(expected.Count()).And.ContainInConsecutiveOrder(expected);
_ = actual.Should().HaveCount(expected.Count()).And.ContainInConsecutiveOrder(expected);
}
public static IEnumerable<object[]> TestCases => new[]