Refactored to use StringBuilder

This commit is contained in:
Benoit Blanchon
2014-09-30 16:40:00 +02:00
parent ab2587f089
commit 6b2705769a
9 changed files with 156 additions and 6 deletions

View File

@ -13,7 +13,7 @@ protected:
void jsonMustBe(const char* expected)
{
char actual[256];
object.serialize(actual, sizeof(actual));
object.printTo(actual, sizeof(actual));
EXPECT_STREQ(expected, actual);
}