forked from bblanchon/ArduinoJson
Extracted class IndentedPrintDecorator from PrettyPrintDecorator
This commit is contained in:
@ -76,7 +76,8 @@ namespace JsonGeneratorTests
|
||||
void whenInputIs(const char input[])
|
||||
{
|
||||
StringBuilder sb(buffer, sizeof(buffer));
|
||||
PrettyPrintDecorator decorator(sb);
|
||||
IndentedPrintDecorator indentedPrint(sb);
|
||||
PrettyPrintDecorator decorator(indentedPrint);
|
||||
|
||||
returnValue = decorator.print(input);
|
||||
}
|
||||
|
@ -74,7 +74,8 @@ namespace JsonGeneratorTests
|
||||
void whenInputIs(const char input[])
|
||||
{
|
||||
StringBuilder sb(buffer, sizeof(buffer));
|
||||
PrettyPrintDecorator decorator(sb);
|
||||
IndentedPrintDecorator indentedPrint(sb);
|
||||
PrettyPrintDecorator decorator(indentedPrint);
|
||||
|
||||
returnValue = decorator.print(input);
|
||||
}
|
||||
|
@ -61,7 +61,8 @@ namespace JsonGeneratorTests
|
||||
void whenInputIs(const char input[])
|
||||
{
|
||||
StringBuilder sb(buffer, sizeof(buffer));
|
||||
PrettyPrintDecorator decorator(sb);
|
||||
IndentedPrintDecorator indentedPrint(sb);
|
||||
PrettyPrintDecorator decorator(indentedPrint);
|
||||
|
||||
returnValue = decorator.print(input);
|
||||
}
|
||||
|
Reference in New Issue
Block a user