Skip to content

Commit fa04485

Browse files
author
MarcoFalke
committed
test: Re-enable univalue test fail18.json
Also, extend the pass2.json test to the maximum depth possible. The two tests are now similar to fail45.json and pass4.json, except for the string element in the inner-most array. Also, sort.
1 parent 63b6b63 commit fa04485

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/univalue/test/fail18.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]]
1+
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]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]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]

src/univalue/test/unitester.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ static void runtest_file(const char *filename_)
6969
}
7070

7171
static const char *filenames[] = {
72+
"fail1.json",
7273
"fail10.json",
7374
"fail11.json",
7475
"fail12.json",
@@ -77,9 +78,9 @@ static const char *filenames[] = {
7778
"fail15.json",
7879
"fail16.json",
7980
"fail17.json",
80-
//"fail18.json", // investigate
81+
"fail18.json",
8182
"fail19.json",
82-
"fail1.json",
83+
"fail2.json",
8384
"fail20.json",
8485
"fail21.json",
8586
"fail22.json",
@@ -90,7 +91,7 @@ static const char *filenames[] = {
9091
"fail27.json",
9192
"fail28.json",
9293
"fail29.json",
93-
"fail2.json",
94+
"fail3.json",
9495
"fail30.json",
9596
"fail31.json",
9697
"fail32.json",
@@ -101,13 +102,12 @@ static const char *filenames[] = {
101102
"fail37.json",
102103
"fail38.json", // invalid unicode: only first half of surrogate pair
103104
"fail39.json", // invalid unicode: only second half of surrogate pair
105+
"fail4.json", // extra comma
104106
"fail40.json", // invalid unicode: broken UTF-8
105107
"fail41.json", // invalid unicode: unfinished UTF-8
106108
"fail42.json", // valid json with garbage following a nul byte
107109
"fail44.json", // unterminated string
108110
"fail45.json", // nested beyond max depth
109-
"fail3.json",
110-
"fail4.json", // extra comma
111111
"fail5.json",
112112
"fail6.json",
113113
"fail7.json",

0 commit comments

Comments
 (0)