Replace single quotes by double quotes

This commit is contained in:
Benoit Blanchon
2014-06-24 21:28:02 +02:00
parent 2a20c5a25c
commit d306422ed9
2 changed files with 4 additions and 4 deletions

View File

@ -82,7 +82,7 @@ public:
{ {
case JSON_STRING: case JSON_STRING:
if (value.string) if (value.string)
append(buffer, bufferSize, "'%s'", value.string); append(buffer, bufferSize, "\"%s\"", value.string);
else else
append(buffer, bufferSize, "null"); append(buffer, bufferSize, "null");
break; break;

View File

@ -27,7 +27,7 @@ namespace JsonGeneratorTests
{ {
arr.add("hello"); arr.add("hello");
AssertJsonIs("['hello']"); AssertJsonIs("[\"hello\"]");
} }
TEST_METHOD(AddTwoStrings) TEST_METHOD(AddTwoStrings)
@ -35,7 +35,7 @@ namespace JsonGeneratorTests
arr.add("hello"); arr.add("hello");
arr.add("world"); arr.add("world");
AssertJsonIs("['hello','world']"); AssertJsonIs("[\"hello\",\"world\"]");
} }
TEST_METHOD(AddOneStringOverCapacity) TEST_METHOD(AddOneStringOverCapacity)
@ -44,7 +44,7 @@ namespace JsonGeneratorTests
arr.add("world"); arr.add("world");
arr.add("lost"); arr.add("lost");
AssertJsonIs("['hello','world']"); AssertJsonIs("[\"hello\",\"world\"]");
} }
TEST_METHOD(AddOneNumber) TEST_METHOD(AddOneNumber)