From a7763cbecac80f9e4cdf8321440614aaf281fb71 Mon Sep 17 00:00:00 2001 From: miloyip Date: Thu, 16 Apr 2015 09:42:22 +0800 Subject: [PATCH] Fix allocator test --- test/unittest/allocatorstest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unittest/allocatorstest.cpp b/test/unittest/allocatorstest.cpp index 2cf9a2e..774bf9b 100644 --- a/test/unittest/allocatorstest.cpp +++ b/test/unittest/allocatorstest.cpp @@ -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()); }