mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Fixed sign conversion warnings in Sharding.tests
This commit is contained in:
parent
382ba723b6
commit
6a1635585d
@ -26,8 +26,8 @@ TEST_CASE("Sharding Function", "[approvals]") {
|
|||||||
{7, {1, 1, 1, 1, 1, 1, 1}},
|
{7, {1, 1, 1, 1, 1, 1, 1}},
|
||||||
};
|
};
|
||||||
|
|
||||||
auto shardCount = GENERATE(range(1, 7));
|
auto shardCount = GENERATE(range(1ul, 7ul));
|
||||||
auto shardIndex = GENERATE_COPY(filter([=](int i) { return i < shardCount; }, range(0, 6)));
|
auto shardIndex = GENERATE_COPY(filter([=](std::size_t i) { return i < shardCount; }, range(0ul, 6ul)));
|
||||||
|
|
||||||
std::vector<int> result = Catch::createShard(testContainer, shardCount, shardIndex);
|
std::vector<int> result = Catch::createShard(testContainer, shardCount, shardIndex);
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ TEST_CASE("Sharding Function", "[approvals]") {
|
|||||||
REQUIRE(result.size() == sizes[shardIndex]);
|
REQUIRE(result.size() == sizes[shardIndex]);
|
||||||
|
|
||||||
std::size_t startIndex = 0;
|
std::size_t startIndex = 0;
|
||||||
for(int i = 0; i < shardIndex; i++) {
|
for(std::size_t i = 0; i < shardIndex; i++) {
|
||||||
startIndex += sizes[i];
|
startIndex += sizes[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user