You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
438 B

#include "gtest/gtest.h"
#include "src/storage/BitVector.h"
TEST(BitVectorTest, Iteration) {
storm::storage::BitVector vector(819200, true);
for (uint_fast64_t i = 0; i < 10000; ++i) {
for (auto bit : vector) {
// The following can never be true, but prevents the compiler from optimizing away the loop.
if (bit == 819200) {
ASSERT_TRUE(false);
}
}
}
}