mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-27 11:06:53 +01:00
Standardize MemoryPoolAllocator::Realloc() also, and improve coverage
This commit is contained in:
@@ -42,6 +42,9 @@ void TestAllocator(Allocator& a) {
|
||||
EXPECT_EQ(i, r[i]);
|
||||
|
||||
Allocator::Free(r);
|
||||
|
||||
// Realloc to zero size
|
||||
EXPECT_TRUE(a.Realloc(a.Malloc(1), 1, 0) == 0);
|
||||
}
|
||||
|
||||
TEST(Allocator, CrtAllocator) {
|
||||
|
||||
Reference in New Issue
Block a user