Skip to content

Commit

Permalink
Less rotate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bkille committed Aug 19, 2023
1 parent 52bc1f2 commit ff6f54f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/src/test-rotate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ TYPED_TEST(SingleRangeTest, Rotate) {
for (size_t idx = 0; idx < this->random_bitvecs.size(); ++idx) {
bit::bit_vector<WordType>& bitvec = this->random_bitvecs[idx];
std::vector<bool> boolvec = this->random_boolvecs[idx];
size_t start_count = 16;
size_t start_count = 4;
while (start_count--) {
unsigned long long start = generate_random_number(0, std::min<unsigned long long>(bitvec.size() - 1, 16));
size_t middle_count = 16;
size_t middle_count = 4;
while (middle_count--) {
unsigned long long middle = generate_random_number(start, bitvec.size() - 1);
auto bitret = bit::rotate(bitvec.begin() + start, bitvec.begin() + middle, bitvec.end());
Expand Down

0 comments on commit ff6f54f

Please sign in to comment.