Skip to content

Commit

Permalink
Cover MemoryPoolAllocator::Capacity()
Browse files Browse the repository at this point in the history
  • Loading branch information
miloyip committed Apr 14, 2015
1 parent f51c014 commit 5dde9ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unittest/documenttest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ TEST(Document, UserBuffer) {
EXPECT_FALSE(doc.HasParseError());
EXPECT_LE(valueAllocator.Size(), sizeof(valueBuffer));
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
Expand Down

0 comments on commit 5dde9ae

Please sign in to comment.