Slight change to Bitset test

Now, will not break if listAll and listTagsAll changes.
This commit is contained in:
Stephen Seo 2016-03-04 21:15:30 +09:00
parent 12bc0d9f8f
commit c08f7d6445

View file

@ -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>());