| 36 | |
| 37 | |
| 38 | TEST(bitset_set, constructors) { |
| 39 | bitset_set<128, Key> bs; |
| 40 | ASSERT_TRUE(bs.empty()); |
| 41 | bs.insert(2); |
| 42 | bs.insert(4); |
| 43 | bitset_set<128, Key> bs2(bs); |
| 44 | ASSERT_EQ(bs, bs2); |
| 45 | int array[] = {2, 4}; |
| 46 | bitset_set<128, Key> bs3(array, array + 2); |
| 47 | ASSERT_EQ(bs, bs3); |
| 48 | bitset_set<128, Key> bs4{2, 4}; |
| 49 | ASSERT_EQ(bs, bs4); |
| 50 | } |
| 51 | |
| 52 | TEST(bitset_set, insert_emplace) { |
| 53 | bitset_set<128, Key> bitset; |
nothing calls this directly
no test coverage detected