diff options
author | Jacques Lucke <jacques@blender.org> | 2020-04-28 17:35:49 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-04-28 17:35:49 +0300 |
commit | d575b72c16d217353795594032196a5857907de2 (patch) | |
tree | 3eee36f974a89d421d102cfde34f61213c401f7d /tests/gtests/blenlib/BLI_set_test.cc | |
parent | 69e8de434ffda6b0135b7d0656bc29d60b9dca08 (diff) |
BLI: add Set.is_empty method
Diffstat (limited to 'tests/gtests/blenlib/BLI_set_test.cc')
-rw-r--r-- | tests/gtests/blenlib/BLI_set_test.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/gtests/blenlib/BLI_set_test.cc b/tests/gtests/blenlib/BLI_set_test.cc index dc163e752d8..ae46c2bf52e 100644 --- a/tests/gtests/blenlib/BLI_set_test.cc +++ b/tests/gtests/blenlib/BLI_set_test.cc @@ -10,6 +10,7 @@ TEST(set, Defaultconstructor) { IntSet set; EXPECT_EQ(set.size(), 0); + EXPECT_TRUE(set.is_empty()); } TEST(set, ContainsNotExistant) @@ -22,8 +23,10 @@ TEST(set, ContainsExistant) { IntSet set; EXPECT_FALSE(set.contains(5)); + EXPECT_TRUE(set.is_empty()); set.add(5); EXPECT_TRUE(set.contains(5)); + EXPECT_FALSE(set.is_empty()); } TEST(set, AddMany) |