Fixed Visual Studio's warnings

This commit is contained in:
Benoit Blanchon
2015-02-07 15:05:46 +01:00
parent 02960f28e4
commit 80913b8044
2 changed files with 6 additions and 3 deletions

View File

@ -46,14 +46,14 @@ TEST_F(DynamicJsonBuffer_Basic_Tests, BlockCountChangesWhenFull) {
TEST_F(DynamicJsonBuffer_Basic_Tests, CanAllocLessThanBlockCapacity) {
void* p1 = buffer.alloc(DynamicJsonBuffer::BLOCK_CAPACITY);
ASSERT_TRUE(p1);
ASSERT_FALSE(p1==NULL);
void* p2 = buffer.alloc(DynamicJsonBuffer::BLOCK_CAPACITY);
ASSERT_TRUE(p2);
ASSERT_FALSE(p2==NULL);
}
TEST_F(DynamicJsonBuffer_Basic_Tests, CantAllocMoreThanBlockCapacity) {
void* p = buffer.alloc(DynamicJsonBuffer::BLOCK_CAPACITY + 1);
ASSERT_FALSE(p);
ASSERT_TRUE(p==NULL);
}
TEST_F(DynamicJsonBuffer_Basic_Tests, ReturnDifferentPointer) {