Fix allocator test

This commit is contained in:
miloyip 2015-04-16 09:42:22 +08:00
parent 67a3ee39b5
commit a7763cbeca

View File

@ -57,7 +57,7 @@ TEST(Allocator, MemoryPoolAllocator) {
MemoryPoolAllocator<> a;
TestAllocator(a);
for (int i = 0; i < 1000; i++) {
for (int i = 1; i < 1000; i++) {
EXPECT_TRUE(a.Malloc(i) != 0);
EXPECT_LE(a.Size(), a.Capacity());
}