SpiecsEngine
 
Loading...
Searching...
No Matches

◆ TEST_F() [14/72]

SpicesTest::TEST_F ( linked_unordered_map_test ,
FindElement  )

Testing if Find element successfully.

Testing if find a exist element successfully.

Testing if find a not exist element successfully.

Testing if find a not exist element successfully.

Testing container's euqlity after find element.

Definition at line 112 of file LinkedUnorderedMap_test.h.

112 {
113
115
119 auto v = c0.find_value("aaa");
120 EXPECT_EQ(*v, "aaa");
121
125 const bool isHasValue = c1.has_key(10);
126 EXPECT_EQ(isHasValue, false);
127
131 v = c2.find_value(10.0);
132 EXPECT_EQ(v, nullptr);
133
137 EXPECT_EQ(c0.has_equal_size(), true);
138 EXPECT_EQ(c1.has_equal_size(), true);
139 EXPECT_EQ(c2.has_equal_size(), true);
140 }
#define SPICESTEST_PROFILE_FUNCTION()