Add capacity check; fix vector_reserve unittest
This commit is contained in:
@@ -3,5 +3,5 @@ load_module("stl_extra");
|
||||
auto uint16v = u16vector();
|
||||
|
||||
uint16v.reserve(5);
|
||||
assert_true(uint16v.size() >= 5);
|
||||
assert_true(uint16v.capacity() >= 5);
|
||||
|
||||
|
Reference in New Issue
Block a user