Testing if No Linear Finding is successfully.
Testing prev_value is getted successfully.
Testing next_value is getted successfully.
@breif Testing first value is getted successfully.
@breif Testing end value is getted successfully.
@breif Testing end key is getted successfully.
Testing container's euqlity after NoLinearFind.
234 {
235
237
241 EXPECT_EQ(c0.prev_value("aaa"), nullptr);
242 EXPECT_EQ(*c0.prev_value("bbb"), "aaa");
243 EXPECT_EQ(*c0.prev_value("ccc"), "bbb");
244
248 EXPECT_EQ(*c0.next_value("aaa"), "bbb");
249 EXPECT_EQ(*c0.next_value("bbb"), "ccc");
250 EXPECT_EQ(c0.next_value("ccc"), nullptr);
251
256
257 EXPECT_EQ(*c0.first(), "aaa");
258 EXPECT_EQ(*c1.first(), "1");
259 EXPECT_EQ(*c2.first(), "1.0");
260 EXPECT_EQ(c3.
first(),
nullptr);
261
265 EXPECT_EQ(*c0.end(), "ccc");
266 EXPECT_EQ(*c1.end(), "3");
267 EXPECT_EQ(*c2.end(), "3.0");
268 EXPECT_EQ(c3.
end(),
nullptr);
269
273 EXPECT_EQ(*c0.end_k(), "ccc");
274 EXPECT_EQ(*c1.end_k(), 3);
275 EXPECT_EQ(*c2.end_k(), 3.0);
276 EXPECT_EQ(c3.
end_k(),
nullptr);
277
281 EXPECT_EQ(c0.has_equal_size(), true);
282 EXPECT_EQ(c1.has_equal_size(), true);
283 EXPECT_EQ(c2.has_equal_size(), true);
285 }
#define SPICESTEST_PROFILE_FUNCTION()
V * end()
Get the end element of this container.
bool has_equal_size()
Determine whether the container's element size is same.
V * first()
Get the first element of this container.
The container combines hashmap and list together. Used in the case that we want iter a hashmap in ord...