add unit test for recent uTP fix
This commit is contained in:
parent
c8f7b79e2b
commit
2be6f990b4
|
@ -647,6 +647,11 @@ int test_main()
|
|||
TEST_EQUAL(pb.span(), 501 - 123);
|
||||
TEST_EQUAL(pb.capacity(), 512);
|
||||
|
||||
pb.insert(500, (void*)501);
|
||||
TEST_EQUAL(pb.size(), 3);
|
||||
pb.insert(500, (void*)500);
|
||||
TEST_EQUAL(pb.size(), 3);
|
||||
|
||||
TEST_CHECK(pb.remove(123) == (void*)123);
|
||||
TEST_EQUAL(pb.size(), 2);
|
||||
TEST_EQUAL(pb.span(), 501 - 125);
|
||||
|
|
Loading…
Reference in New Issue