forked from bblanchon/ArduinoJson
Renamed IndentedPrintDecorator to PrettyPrintDecorator
This commit is contained in:
@ -85,9 +85,9 @@
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="EscapedStringTests.cpp" />
|
||||
<ClCompile Include="Intented_Array_Tests.cpp" />
|
||||
<ClCompile Include="Intented_Object_Tests.cpp" />
|
||||
<ClCompile Include="Intented_String_Tests.cpp" />
|
||||
<ClCompile Include="PrettyPrint_Array_Tests.cpp" />
|
||||
<ClCompile Include="PrettyPrint_Object_Tests.cpp" />
|
||||
<ClCompile Include="PrettyPrint_String_Tests.cpp" />
|
||||
<ClCompile Include="Issue10.cpp" />
|
||||
<ClCompile Include="JsonArrayTests.cpp" />
|
||||
<ClCompile Include="JsonObject_Indexer_Tests.cpp" />
|
||||
|
@ -39,13 +39,13 @@
|
||||
<ClCompile Include="Issue10.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Intented_Array_Tests.cpp">
|
||||
<ClCompile Include="PrettyPrint_Array_Tests.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Intented_Object_Tests.cpp">
|
||||
<ClCompile Include="PrettyPrint_Object_Tests.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Intented_String_Tests.cpp">
|
||||
<ClCompile Include="PrettyPrint_String_Tests.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
#include "CppUnitTest.h"
|
||||
#include "IndentedPrintDecorator.h"
|
||||
#include "PrettyPrintDecorator.h"
|
||||
#include "StringBuilder.h"
|
||||
|
||||
using namespace ArduinoJson::Internals;
|
||||
@ -12,7 +12,7 @@ using namespace Microsoft::VisualStudio::CppUnitTestFramework;
|
||||
|
||||
namespace JsonGeneratorTests
|
||||
{
|
||||
TEST_CLASS(Indented_Array_Tests)
|
||||
TEST_CLASS(PrettyPrint_Array_Tests)
|
||||
{
|
||||
char buffer[1024];
|
||||
size_t returnValue;
|
||||
@ -75,7 +75,7 @@ namespace JsonGeneratorTests
|
||||
void whenInputIs(const char input[])
|
||||
{
|
||||
StringBuilder sb(buffer, sizeof(buffer));
|
||||
IndentedPrintDecorator decorator(sb);
|
||||
PrettyPrintDecorator decorator(sb);
|
||||
|
||||
returnValue = decorator.print(input);
|
||||
}
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
#include "CppUnitTest.h"
|
||||
#include "IndentedPrintDecorator.h"
|
||||
#include "PrettyPrintDecorator.h"
|
||||
#include "StringBuilder.h"
|
||||
|
||||
using namespace ArduinoJson::Internals;
|
||||
@ -12,7 +12,7 @@ using namespace Microsoft::VisualStudio::CppUnitTestFramework;
|
||||
|
||||
namespace JsonGeneratorTests
|
||||
{
|
||||
TEST_CLASS(Indented_Object_Tests)
|
||||
TEST_CLASS(PrettyPrint_Object_Tests)
|
||||
{
|
||||
char buffer[1024];
|
||||
size_t returnValue;
|
||||
@ -73,7 +73,7 @@ namespace JsonGeneratorTests
|
||||
void whenInputIs(const char input[])
|
||||
{
|
||||
StringBuilder sb(buffer, sizeof(buffer));
|
||||
IndentedPrintDecorator decorator(sb);
|
||||
PrettyPrintDecorator decorator(sb);
|
||||
|
||||
returnValue = decorator.print(input);
|
||||
}
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
#include "CppUnitTest.h"
|
||||
#include "IndentedPrintDecorator.h"
|
||||
#include "PrettyPrintDecorator.h"
|
||||
#include "StringBuilder.h"
|
||||
|
||||
using namespace ArduinoJson::Internals;
|
||||
@ -12,7 +12,7 @@ using namespace Microsoft::VisualStudio::CppUnitTestFramework;
|
||||
|
||||
namespace JsonGeneratorTests
|
||||
{
|
||||
TEST_CLASS(Intented_String_Tests)
|
||||
TEST_CLASS(PrettyPrint_String_Tests)
|
||||
{
|
||||
char buffer[1024];
|
||||
size_t returnValue;
|
||||
@ -36,7 +36,7 @@ namespace JsonGeneratorTests
|
||||
void whenInputIs(const char input[])
|
||||
{
|
||||
StringBuilder sb(buffer, sizeof(buffer));
|
||||
IndentedPrintDecorator decorator(sb);
|
||||
PrettyPrintDecorator decorator(sb);
|
||||
|
||||
returnValue = decorator.print(input);
|
||||
}
|
Reference in New Issue
Block a user