mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-27 19:10:24 +01:00
Cover MemoryPoolAllocator::Capacity()
This commit is contained in:
@@ -243,6 +243,10 @@ TEST(Document, UserBuffer) {
|
|||||||
EXPECT_FALSE(doc.HasParseError());
|
EXPECT_FALSE(doc.HasParseError());
|
||||||
EXPECT_LE(valueAllocator.Size(), sizeof(valueBuffer));
|
EXPECT_LE(valueAllocator.Size(), sizeof(valueBuffer));
|
||||||
EXPECT_LE(parseAllocator.Size(), sizeof(parseBuffer));
|
EXPECT_LE(parseAllocator.Size(), sizeof(parseBuffer));
|
||||||
|
|
||||||
|
// Cover MemoryPool::Capacity()
|
||||||
|
EXPECT_LE(valueAllocator.Size(), valueAllocator.Capacity());
|
||||||
|
EXPECT_LE(parseAllocator.Size(), parseAllocator.Capacity());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Issue 226: Value of string type should not point to NULL
|
// Issue 226: Value of string type should not point to NULL
|
||||||
|
|||||||
Reference in New Issue
Block a user