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.

14 lines
438 B

  1. #include "gtest/gtest.h"
  2. #include "src/storage/BitVector.h"
  3. TEST(BitVectorTest, Iteration) {
  4. storm::storage::BitVector vector(819200, true);
  5. for (uint_fast64_t i = 0; i < 10000; ++i) {
  6. for (auto bit : vector) {
  7. // The following can never be true, but prevents the compiler from optimizing away the loop.
  8. if (bit == 819200) {
  9. ASSERT_TRUE(false);
  10. }
  11. }
  12. }
  13. }