From c08f7d644588c2f7c3892da15683b24c0d3d6fab Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Fri, 4 Mar 2016 21:15:30 +0900 Subject: [PATCH] Slight change to Bitset test Now, will not break if listAll and listTagsAll changes. --- src/test/MetaTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/MetaTest.cpp b/src/test/MetaTest.cpp index 2564615..4a78de8 100644 --- a/src/test/MetaTest.cpp +++ b/src/test/MetaTest.cpp @@ -78,13 +78,13 @@ TEST(Meta, Bitset) EC::Bitset bitset; EXPECT_EQ(bitset.size(), listAll::size + listTagsAll::size); - bitset[1] = true; + bitset[EC::Meta::IndexOf::value] = true; EXPECT_TRUE(bitset.getComponentBit()); bitset.flip(); EXPECT_FALSE(bitset.getComponentBit()); bitset.reset(); - bitset[4] = true; + bitset[listAll::size + EC::Meta::IndexOf::value] = true; EXPECT_TRUE(bitset.getTagBit()); bitset.flip(); EXPECT_FALSE(bitset.getTagBit());