Slight change to Bitset test
Now, will not break if listAll and listTagsAll changes.
This commit is contained in:
parent
12bc0d9f8f
commit
c08f7d6445
1 changed files with 2 additions and 2 deletions
|
@ -78,13 +78,13 @@ TEST(Meta, Bitset)
|
|||
EC::Bitset<listAll, listTagsAll> bitset;
|
||||
EXPECT_EQ(bitset.size(), listAll::size + listTagsAll::size);
|
||||
|
||||
bitset[1] = true;
|
||||
bitset[EC::Meta::IndexOf<C1, listAll>::value] = true;
|
||||
EXPECT_TRUE(bitset.getComponentBit<C1>());
|
||||
bitset.flip();
|
||||
EXPECT_FALSE(bitset.getComponentBit<C1>());
|
||||
|
||||
bitset.reset();
|
||||
bitset[4] = true;
|
||||
bitset[listAll::size + EC::Meta::IndexOf<T0, listTagsAll>::value] = true;
|
||||
EXPECT_TRUE(bitset.getTagBit<T0>());
|
||||
bitset.flip();
|
||||
EXPECT_FALSE(bitset.getTagBit<T0>());
|
||||
|
|
Loading…
Reference in a new issue