Implement Printable

This commit is contained in:
Benoit Blanchon
2014-09-30 16:43:10 +02:00
parent 6b2705769a
commit 3243f2dc58
6 changed files with 37 additions and 35 deletions

View File

@ -13,9 +13,10 @@ protected:
void jsonMustBe(const char* expected)
{
char actual[256];
object.printTo(actual, sizeof(actual));
int result = object.printTo(actual, sizeof(actual));
EXPECT_STREQ(expected, actual);
EXPECT_EQ(strlen(expected), result);
}
JsonObject object;