mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-18 04:52:22 +02:00
Implement Printable
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user