SpiecsEngine
 
Loading...
Searching...
No Matches

◆ TEST_F() [13/72]

SpicesTest::TEST_F ( linked_unordered_map_test ,
AddElement  )

Testing if Add element successfully.

Testing if insert a new element successfully.

Testing if insert a repeat element successfully.

Testing if the insert element written successfully.

Testing container's euqlity after add element.

Definition at line 145 of file LinkedUnorderedMap_test.h.

145 {
146
148
152 c0.push_back("ddd", "ddd");
153 EXPECT_EQ(c0.size(), 4);
154
158 c1.push_back(1, "1");
159 EXPECT_EQ(c1.size(), 3);
160
164 auto v = c2.find_value(1.0f);
165 EXPECT_EQ(*v, "1.0");
166 c2.push_back(1.0f, "10.0");
167 v = c2.find_value(1.0f);
168 EXPECT_EQ(*v, "10.0");
169
173 EXPECT_EQ(c0.has_equal_size(), true);
174 EXPECT_EQ(c1.has_equal_size(), true);
175 EXPECT_EQ(c2.has_equal_size(), true);
176 }
#define SPICESTEST_PROFILE_FUNCTION()