diff options
author | Jacques Lucke <jacques@blender.org> | 2020-04-28 19:38:18 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-04-28 20:18:12 +0300 |
commit | 4d06c1c25bd1e6503b7b6730f23501c97bb2a4fb (patch) | |
tree | d8d42e836af7ee5b707a42fca657884c449580af /tests/gtests | |
parent | 44ac789a3a31947953836d98dcace3f37963848c (diff) |
BLI: add VectorSet.is_empty method
Diffstat (limited to 'tests/gtests')
-rw-r--r-- | tests/gtests/blenlib/BLI_vector_set_test.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/gtests/blenlib/BLI_vector_set_test.cc b/tests/gtests/blenlib/BLI_vector_set_test.cc index 816d5d653a5..bfdd47ccb13 100644 --- a/tests/gtests/blenlib/BLI_vector_set_test.cc +++ b/tests/gtests/blenlib/BLI_vector_set_test.cc @@ -8,6 +8,7 @@ TEST(vector_set, DefaultConstructor) { IntVectorSet set; EXPECT_EQ(set.size(), 0); + EXPECT_TRUE(set.is_empty()); } TEST(vector_set, InitializerListConstructor_WithoutDuplicates) @@ -70,8 +71,10 @@ TEST(vector_set, MoveAssignment) TEST(vector_set, AddNewIncreasesSize) { IntVectorSet set; + EXPECT_TRUE(set.is_empty()); EXPECT_EQ(set.size(), 0); set.add(5); + EXPECT_FALSE(set.is_empty()); EXPECT_EQ(set.size(), 1); } |