Skip to content

Commit 48030e3

Browse files
committed
Replace a hardcoded number
1 parent 242c0aa commit 48030e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

json_parser_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ TEST_F(JsonParserTest, ExceedMaxDepth)
145145

146146
TEST_F(JsonParserTest, StringTooLong)
147147
{
148-
std::string long_str(256, 'a');
148+
std::string long_str(JSON_DEFAULT_MAX_STRING, 'a');
149149
std::string json = "\"" + long_str + "\"";
150150
json_parser_init(&parser, json.c_str(), json.size());
151151
EXPECT_EQ(json_parser_parse(&parser), JSON_ERROR_STRING_TOO_LONG);

0 commit comments

Comments
 (0)