Skip to content

Commit e90695c

Browse files
committed
smaller depth test
1 parent b45d1ad commit e90695c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_value.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ static std::string _test_string_param(std::string param) {
1414
void test_value() {
1515
{
1616
int a = 0;
17-
char *szBrackets = new char[200001];
18-
for (; a < 100000; a++) {
17+
char *szBrackets = new char[2001];
18+
for (; a < 1000; a++) {
1919
szBrackets[a] = '[';
2020
}
21-
for (; a < 200000; a++) {
21+
for (; a < 2000; a++) {
2222
szBrackets[a] = ']';
2323
}
24-
szBrackets[200000] = 0;
24+
szBrackets[2000] = 0;
2525
Hjson::Unmarshal(szBrackets);
2626
delete[] szBrackets;
2727
}

0 commit comments

Comments
 (0)