add unit test for recent uTP fix

This commit is contained in:
Arvid Norberg 2012-03-25 05:40:00 +00:00
parent c8f7b79e2b
commit 2be6f990b4
1 changed files with 5 additions and 0 deletions

View File

@ -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);