|
@@ -318,15 +318,15 @@ TEST_F(JsonStreamParserTest, ObjectKeyTypes) {
|
|
// - array containing array, object, values (true, false, null, num, string)
|
|
// - array containing array, object, values (true, false, null, num, string)
|
|
TEST_F(JsonStreamParserTest, ArrayValues) {
|
|
TEST_F(JsonStreamParserTest, ArrayValues) {
|
|
StringPiece str =
|
|
StringPiece str =
|
|
- "[true, false, null, 'a string', \"another string\", [22, -127, 45.3, "
|
|
|
|
|
|
+ "[true, false, null, 'a', \"an\", [22, -127, 45.3, "
|
|
"-1056.4, 11779497823553162765], {'key': true}]";
|
|
"-1056.4, 11779497823553162765], {'key': true}]";
|
|
for (int i = 0; i <= str.length(); ++i) {
|
|
for (int i = 0; i <= str.length(); ++i) {
|
|
ow_.StartList("")
|
|
ow_.StartList("")
|
|
->RenderBool("", true)
|
|
->RenderBool("", true)
|
|
->RenderBool("", false)
|
|
->RenderBool("", false)
|
|
->RenderNull("")
|
|
->RenderNull("")
|
|
- ->RenderString("", "a string")
|
|
|
|
- ->RenderString("", "another string")
|
|
|
|
|
|
+ ->RenderString("", "a")
|
|
|
|
+ ->RenderString("", "an")
|
|
->StartList("")
|
|
->StartList("")
|
|
->RenderUint64("", 22)
|
|
->RenderUint64("", 22)
|
|
->RenderInt64("", -127)
|
|
->RenderInt64("", -127)
|