Test that adding values to the JsonObject increase the size of the buffer

This commit is contained in:
Benoit Blanchon
2014-09-27 12:16:20 +02:00
parent 4d4119e589
commit 166bdd6919
8 changed files with 74 additions and 17 deletions

View File

@ -1,4 +1,4 @@
//#include "JsonBuffer.h"
#include "JsonBuffer.h"
#include "JsonObject.h"
#include "JsonValue.h"
//#include "JsonNode.h"
@ -33,6 +33,8 @@
JsonValue JsonObject::operator[](char const* key)
{
_buffer->createNode();
_buffer->createNode();
_size++;
return JsonValue();
}