Squashed 'deps/ox/deps/jsoncpp/' content from commit 5defb4ed
git-subtree-dir: deps/ox/deps/jsoncpp git-subtree-split: 5defb4ed1a4293b8e2bf641e16b156fb9de498cc
This commit is contained in:
1
test/data/fail_invalid_quote.json
Normal file
1
test/data/fail_invalid_quote.json
Normal file
@@ -0,0 +1 @@
|
||||
{'//this is bad JSON.'}
|
1
test/data/fail_test_array_01.json
Normal file
1
test/data/fail_test_array_01.json
Normal file
@@ -0,0 +1 @@
|
||||
[ 1 2 3]
|
1
test/data/fail_test_array_02.json
Normal file
1
test/data/fail_test_array_02.json
Normal file
@@ -0,0 +1 @@
|
||||
[1,,]
|
1
test/data/fail_test_object_01.json
Normal file
1
test/data/fail_test_object_01.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "count" : 1234,, }
|
1
test/data/fail_test_stack_limit.json
Normal file
1
test/data/fail_test_stack_limit.json
Normal file
@@ -0,0 +1 @@
|
||||
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[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]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
|
1
test/data/legacy_test_array_01.expected
Normal file
1
test/data/legacy_test_array_01.expected
Normal file
@@ -0,0 +1 @@
|
||||
.=[]
|
1
test/data/legacy_test_array_01.json
Normal file
1
test/data/legacy_test_array_01.json
Normal file
@@ -0,0 +1 @@
|
||||
[]
|
2
test/data/legacy_test_array_02.expected
Normal file
2
test/data/legacy_test_array_02.expected
Normal file
@@ -0,0 +1,2 @@
|
||||
.=[]
|
||||
.[0]=1
|
1
test/data/legacy_test_array_02.json
Normal file
1
test/data/legacy_test_array_02.json
Normal file
@@ -0,0 +1 @@
|
||||
[1]
|
6
test/data/legacy_test_array_03.expected
Normal file
6
test/data/legacy_test_array_03.expected
Normal file
@@ -0,0 +1,6 @@
|
||||
.=[]
|
||||
.[0]=1
|
||||
.[1]=2
|
||||
.[2]=3
|
||||
.[3]=4
|
||||
.[4]=5
|
1
test/data/legacy_test_array_03.json
Normal file
1
test/data/legacy_test_array_03.json
Normal file
@@ -0,0 +1 @@
|
||||
[ 1, 2 , 3,4,5]
|
5
test/data/legacy_test_array_04.expected
Normal file
5
test/data/legacy_test_array_04.expected
Normal file
@@ -0,0 +1,5 @@
|
||||
.=[]
|
||||
.[0]=1
|
||||
.[1]="abc"
|
||||
.[2]=12.3
|
||||
.[3]=-4
|
1
test/data/legacy_test_array_04.json
Normal file
1
test/data/legacy_test_array_04.json
Normal file
@@ -0,0 +1 @@
|
||||
[1, "abc" , 12.3, -4]
|
100
test/data/legacy_test_array_05.expected
Normal file
100
test/data/legacy_test_array_05.expected
Normal file
@@ -0,0 +1,100 @@
|
||||
.=[]
|
||||
.[0]=1
|
||||
.[1]=2
|
||||
.[2]=3
|
||||
.[3]=4
|
||||
.[4]=5
|
||||
.[5]=6
|
||||
.[6]=7
|
||||
.[7]=8
|
||||
.[8]=9
|
||||
.[9]=10
|
||||
.[10]=11
|
||||
.[11]=12
|
||||
.[12]=13
|
||||
.[13]=14
|
||||
.[14]=15
|
||||
.[15]=16
|
||||
.[16]=17
|
||||
.[17]=18
|
||||
.[18]=19
|
||||
.[19]=20
|
||||
.[20]=21
|
||||
.[21]=22
|
||||
.[22]=23
|
||||
.[23]=24
|
||||
.[24]=25
|
||||
.[25]=26
|
||||
.[26]=27
|
||||
.[27]=28
|
||||
.[28]=29
|
||||
.[29]=30
|
||||
.[30]=31
|
||||
.[31]=32
|
||||
.[32]=33
|
||||
.[33]=34
|
||||
.[34]=35
|
||||
.[35]=36
|
||||
.[36]=37
|
||||
.[37]=38
|
||||
.[38]=39
|
||||
.[39]=40
|
||||
.[40]=41
|
||||
.[41]=42
|
||||
.[42]=43
|
||||
.[43]=44
|
||||
.[44]=45
|
||||
.[45]=46
|
||||
.[46]=47
|
||||
.[47]=48
|
||||
.[48]=49
|
||||
.[49]=50
|
||||
.[50]=51
|
||||
.[51]=52
|
||||
.[52]=53
|
||||
.[53]=54
|
||||
.[54]=55
|
||||
.[55]=56
|
||||
.[56]=57
|
||||
.[57]=58
|
||||
.[58]=59
|
||||
.[59]=60
|
||||
.[60]=61
|
||||
.[61]=62
|
||||
.[62]=63
|
||||
.[63]=64
|
||||
.[64]=65
|
||||
.[65]=66
|
||||
.[66]=67
|
||||
.[67]=68
|
||||
.[68]=69
|
||||
.[69]=70
|
||||
.[70]=71
|
||||
.[71]=72
|
||||
.[72]=73
|
||||
.[73]=74
|
||||
.[74]=75
|
||||
.[75]=76
|
||||
.[76]=77
|
||||
.[77]=78
|
||||
.[78]=79
|
||||
.[79]=80
|
||||
.[80]=81
|
||||
.[81]=82
|
||||
.[82]=83
|
||||
.[83]=84
|
||||
.[84]=85
|
||||
.[85]=86
|
||||
.[86]=87
|
||||
.[87]=88
|
||||
.[88]=89
|
||||
.[89]=90
|
||||
.[90]=91
|
||||
.[91]=92
|
||||
.[92]=93
|
||||
.[93]=94
|
||||
.[94]=95
|
||||
.[95]=96
|
||||
.[96]=97
|
||||
.[97]=98
|
||||
.[98]=99
|
1
test/data/legacy_test_array_05.json
Normal file
1
test/data/legacy_test_array_05.json
Normal file
@@ -0,0 +1 @@
|
||||
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99]
|
5
test/data/legacy_test_array_06.expected
Normal file
5
test/data/legacy_test_array_06.expected
Normal file
@@ -0,0 +1,5 @@
|
||||
.=[]
|
||||
.[0]="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
||||
.[1]="bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
|
||||
.[2]="ccccccccccccccccccccccc"
|
||||
.[3]="dddddddddddddddddddddddddddddddddddddddddddddddddddd"
|
4
test/data/legacy_test_array_06.json
Normal file
4
test/data/legacy_test_array_06.json
Normal file
@@ -0,0 +1,4 @@
|
||||
[ "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
||||
"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
||||
"ccccccccccccccccccccccc",
|
||||
"dddddddddddddddddddddddddddddddddddddddddddddddddddd" ]
|
2122
test/data/legacy_test_array_07.expected
Normal file
2122
test/data/legacy_test_array_07.expected
Normal file
File diff suppressed because it is too large
Load Diff
2
test/data/legacy_test_array_07.json
Normal file
2
test/data/legacy_test_array_07.json
Normal file
File diff suppressed because one or more lines are too long
1
test/data/legacy_test_basic_01.expected
Normal file
1
test/data/legacy_test_basic_01.expected
Normal file
@@ -0,0 +1 @@
|
||||
.=123456789
|
1
test/data/legacy_test_basic_01.json
Normal file
1
test/data/legacy_test_basic_01.json
Normal file
@@ -0,0 +1 @@
|
||||
0123456789
|
1
test/data/legacy_test_basic_02.expected
Normal file
1
test/data/legacy_test_basic_02.expected
Normal file
@@ -0,0 +1 @@
|
||||
.=-123456789
|
1
test/data/legacy_test_basic_02.json
Normal file
1
test/data/legacy_test_basic_02.json
Normal file
@@ -0,0 +1 @@
|
||||
-0123456789
|
3
test/data/legacy_test_basic_03.expected
Normal file
3
test/data/legacy_test_basic_03.expected
Normal file
@@ -0,0 +1,3 @@
|
||||
.=1.2345678
|
||||
|
||||
|
3
test/data/legacy_test_basic_03.json
Normal file
3
test/data/legacy_test_basic_03.json
Normal file
@@ -0,0 +1,3 @@
|
||||
1.2345678
|
||||
|
||||
|
2
test/data/legacy_test_basic_04.expected
Normal file
2
test/data/legacy_test_basic_04.expected
Normal file
@@ -0,0 +1,2 @@
|
||||
.="abcdef"
|
||||
|
2
test/data/legacy_test_basic_04.json
Normal file
2
test/data/legacy_test_basic_04.json
Normal file
@@ -0,0 +1,2 @@
|
||||
"abcdef"
|
||||
|
2
test/data/legacy_test_basic_05.expected
Normal file
2
test/data/legacy_test_basic_05.expected
Normal file
@@ -0,0 +1,2 @@
|
||||
.=null
|
||||
|
2
test/data/legacy_test_basic_05.json
Normal file
2
test/data/legacy_test_basic_05.json
Normal file
@@ -0,0 +1,2 @@
|
||||
null
|
||||
|
2
test/data/legacy_test_basic_06.expected
Normal file
2
test/data/legacy_test_basic_06.expected
Normal file
@@ -0,0 +1,2 @@
|
||||
.=true
|
||||
|
2
test/data/legacy_test_basic_06.json
Normal file
2
test/data/legacy_test_basic_06.json
Normal file
@@ -0,0 +1,2 @@
|
||||
true
|
||||
|
2
test/data/legacy_test_basic_07.expected
Normal file
2
test/data/legacy_test_basic_07.expected
Normal file
@@ -0,0 +1,2 @@
|
||||
.=false
|
||||
|
2
test/data/legacy_test_basic_07.json
Normal file
2
test/data/legacy_test_basic_07.json
Normal file
@@ -0,0 +1,2 @@
|
||||
false
|
||||
|
3
test/data/legacy_test_basic_08.expected
Normal file
3
test/data/legacy_test_basic_08.expected
Normal file
@@ -0,0 +1,3 @@
|
||||
// C++ style comment
|
||||
.=null
|
||||
|
3
test/data/legacy_test_basic_08.json
Normal file
3
test/data/legacy_test_basic_08.json
Normal file
@@ -0,0 +1,3 @@
|
||||
// C++ style comment
|
||||
null
|
||||
|
4
test/data/legacy_test_basic_09.expected
Normal file
4
test/data/legacy_test_basic_09.expected
Normal file
@@ -0,0 +1,4 @@
|
||||
/* C style comment
|
||||
*/
|
||||
.=null
|
||||
|
4
test/data/legacy_test_basic_09.json
Normal file
4
test/data/legacy_test_basic_09.json
Normal file
@@ -0,0 +1,4 @@
|
||||
/* C style comment
|
||||
*/
|
||||
null
|
||||
|
4
test/data/legacy_test_comment_00.expected
Normal file
4
test/data/legacy_test_comment_00.expected
Normal file
@@ -0,0 +1,4 @@
|
||||
// Comment for array
|
||||
.=[]
|
||||
// Comment within array
|
||||
.[0]="one-element"
|
5
test/data/legacy_test_comment_00.json
Normal file
5
test/data/legacy_test_comment_00.json
Normal file
@@ -0,0 +1,5 @@
|
||||
// Comment for array
|
||||
[
|
||||
// Comment within array
|
||||
"one-element"
|
||||
]
|
10
test/data/legacy_test_comment_01.expected
Normal file
10
test/data/legacy_test_comment_01.expected
Normal file
@@ -0,0 +1,10 @@
|
||||
.={}
|
||||
// Comment for array
|
||||
.test=[]
|
||||
// Comment within array
|
||||
.test[0]={}
|
||||
.test[0].a="aaa"
|
||||
.test[1]={}
|
||||
.test[1].b="bbb"
|
||||
.test[2]={}
|
||||
.test[2].c="ccc"
|
10
test/data/legacy_test_comment_01.json
Normal file
10
test/data/legacy_test_comment_01.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"test":
|
||||
// Comment for array
|
||||
[
|
||||
// Comment within array
|
||||
{ "a" : "aaa" }, // Comment for a
|
||||
{ "b" : "bbb" }, // Comment for b
|
||||
{ "c" : "ccc" } // Comment for c
|
||||
]
|
||||
}
|
23
test/data/legacy_test_comment_02.expected
Normal file
23
test/data/legacy_test_comment_02.expected
Normal file
@@ -0,0 +1,23 @@
|
||||
.={}
|
||||
/* C-style comment
|
||||
|
||||
C-style-2 comment */
|
||||
.c-test={}
|
||||
.c-test.a=1
|
||||
/* Internal comment c-style */
|
||||
.c-test.b=2
|
||||
// C++-style comment
|
||||
.cpp-test={}
|
||||
// Multiline comment cpp-style
|
||||
// Second line
|
||||
.cpp-test.c=3
|
||||
// Comment before double
|
||||
.cpp-test.d=4.1
|
||||
// Comment before string
|
||||
.cpp-test.e="e-string"
|
||||
// Comment before true
|
||||
.cpp-test.f=true
|
||||
// Comment before false
|
||||
.cpp-test.g=false
|
||||
// Comment before null
|
||||
.cpp-test.h=null
|
26
test/data/legacy_test_comment_02.json
Normal file
26
test/data/legacy_test_comment_02.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
/* C-style comment
|
||||
|
||||
C-style-2 comment */
|
||||
"c-test" : {
|
||||
"a" : 1,
|
||||
/* Internal comment c-style */
|
||||
"b" : 2
|
||||
},
|
||||
// C++-style comment
|
||||
"cpp-test" : {
|
||||
// Multiline comment cpp-style
|
||||
// Second line
|
||||
"c" : 3,
|
||||
// Comment before double
|
||||
"d" : 4.1,
|
||||
// Comment before string
|
||||
"e" : "e-string",
|
||||
// Comment before true
|
||||
"f" : true,
|
||||
// Comment before false
|
||||
"g" : false,
|
||||
// Comment before null
|
||||
"h" : null
|
||||
}
|
||||
}
|
20
test/data/legacy_test_complex_01.expected
Normal file
20
test/data/legacy_test_complex_01.expected
Normal file
@@ -0,0 +1,20 @@
|
||||
.={}
|
||||
.attribute=[]
|
||||
.attribute[0]="random"
|
||||
.attribute[1]="short"
|
||||
.attribute[2]="bold"
|
||||
.attribute[3]=12
|
||||
.attribute[4]={}
|
||||
.attribute[4].height=7
|
||||
.attribute[4].width=64
|
||||
.count=1234
|
||||
.name={}
|
||||
.name.aka="T.E.S.T."
|
||||
.name.id=123987
|
||||
.test={}
|
||||
.test.1={}
|
||||
.test.1.2={}
|
||||
.test.1.2.3={}
|
||||
.test.1.2.3.coord=[]
|
||||
.test.1.2.3.coord[0]=1
|
||||
.test.1.2.3.coord[1]=2
|
17
test/data/legacy_test_complex_01.json
Normal file
17
test/data/legacy_test_complex_01.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"count" : 1234,
|
||||
"name" : { "aka" : "T.E.S.T.", "id" : 123987 },
|
||||
"attribute" : [
|
||||
"random",
|
||||
"short",
|
||||
"bold",
|
||||
12,
|
||||
{ "height" : 7, "width" : 64 }
|
||||
],
|
||||
"test": { "1" :
|
||||
{ "2" :
|
||||
{ "3" : { "coord" : [ 1,2] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
2
test/data/legacy_test_integer_01.expected
Normal file
2
test/data/legacy_test_integer_01.expected
Normal file
@@ -0,0 +1,2 @@
|
||||
// Max signed integer
|
||||
.=2147483647
|
2
test/data/legacy_test_integer_01.json
Normal file
2
test/data/legacy_test_integer_01.json
Normal file
@@ -0,0 +1,2 @@
|
||||
// Max signed integer
|
||||
2147483647
|
2
test/data/legacy_test_integer_02.expected
Normal file
2
test/data/legacy_test_integer_02.expected
Normal file
@@ -0,0 +1,2 @@
|
||||
// Min signed integer
|
||||
.=-2147483648
|
2
test/data/legacy_test_integer_02.json
Normal file
2
test/data/legacy_test_integer_02.json
Normal file
@@ -0,0 +1,2 @@
|
||||
// Min signed integer
|
||||
-2147483648
|
2
test/data/legacy_test_integer_03.expected
Normal file
2
test/data/legacy_test_integer_03.expected
Normal file
@@ -0,0 +1,2 @@
|
||||
// Max unsigned integer
|
||||
.=4294967295
|
2
test/data/legacy_test_integer_03.json
Normal file
2
test/data/legacy_test_integer_03.json
Normal file
@@ -0,0 +1,2 @@
|
||||
// Max unsigned integer
|
||||
4294967295
|
3
test/data/legacy_test_integer_04.expected
Normal file
3
test/data/legacy_test_integer_04.expected
Normal file
@@ -0,0 +1,3 @@
|
||||
// Min unsigned integer
|
||||
.=0
|
||||
|
3
test/data/legacy_test_integer_04.json
Normal file
3
test/data/legacy_test_integer_04.json
Normal file
@@ -0,0 +1,3 @@
|
||||
// Min unsigned integer
|
||||
0
|
||||
|
2
test/data/legacy_test_integer_05.expected
Normal file
2
test/data/legacy_test_integer_05.expected
Normal file
@@ -0,0 +1,2 @@
|
||||
.=1
|
||||
|
2
test/data/legacy_test_integer_05.json
Normal file
2
test/data/legacy_test_integer_05.json
Normal file
@@ -0,0 +1,2 @@
|
||||
1
|
||||
|
1
test/data/legacy_test_integer_06_64bits.expected
Normal file
1
test/data/legacy_test_integer_06_64bits.expected
Normal file
@@ -0,0 +1 @@
|
||||
.=9223372036854775808
|
2
test/data/legacy_test_integer_06_64bits.json
Normal file
2
test/data/legacy_test_integer_06_64bits.json
Normal file
@@ -0,0 +1,2 @@
|
||||
9223372036854775808
|
||||
|
1
test/data/legacy_test_integer_07_64bits.expected
Normal file
1
test/data/legacy_test_integer_07_64bits.expected
Normal file
@@ -0,0 +1 @@
|
||||
.=-9223372036854775808
|
2
test/data/legacy_test_integer_07_64bits.json
Normal file
2
test/data/legacy_test_integer_07_64bits.json
Normal file
@@ -0,0 +1,2 @@
|
||||
-9223372036854775808
|
||||
|
1
test/data/legacy_test_integer_08_64bits.expected
Normal file
1
test/data/legacy_test_integer_08_64bits.expected
Normal file
@@ -0,0 +1 @@
|
||||
.=18446744073709551615
|
2
test/data/legacy_test_integer_08_64bits.json
Normal file
2
test/data/legacy_test_integer_08_64bits.json
Normal file
@@ -0,0 +1,2 @@
|
||||
18446744073709551615
|
||||
|
2122
test/data/legacy_test_large_01.expected
Normal file
2122
test/data/legacy_test_large_01.expected
Normal file
File diff suppressed because it is too large
Load Diff
2
test/data/legacy_test_large_01.json
Normal file
2
test/data/legacy_test_large_01.json
Normal file
File diff suppressed because one or more lines are too long
1
test/data/legacy_test_object_01.expected
Normal file
1
test/data/legacy_test_object_01.expected
Normal file
@@ -0,0 +1 @@
|
||||
.={}
|
1
test/data/legacy_test_object_01.json
Normal file
1
test/data/legacy_test_object_01.json
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
2
test/data/legacy_test_object_02.expected
Normal file
2
test/data/legacy_test_object_02.expected
Normal file
@@ -0,0 +1,2 @@
|
||||
.={}
|
||||
.count=1234
|
1
test/data/legacy_test_object_02.json
Normal file
1
test/data/legacy_test_object_02.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "count" : 1234 }
|
4
test/data/legacy_test_object_03.expected
Normal file
4
test/data/legacy_test_object_03.expected
Normal file
@@ -0,0 +1,4 @@
|
||||
.={}
|
||||
.attribute="random"
|
||||
.count=1234
|
||||
.name="test"
|
5
test/data/legacy_test_object_03.json
Normal file
5
test/data/legacy_test_object_03.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"count" : 1234,
|
||||
"name" : "test",
|
||||
"attribute" : "random"
|
||||
}
|
2
test/data/legacy_test_object_04.expected
Normal file
2
test/data/legacy_test_object_04.expected
Normal file
@@ -0,0 +1,2 @@
|
||||
.={}
|
||||
.=1234
|
3
test/data/legacy_test_object_04.json
Normal file
3
test/data/legacy_test_object_04.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"" : 1234
|
||||
}
|
11
test/data/legacy_test_preserve_comment_01.expected
Normal file
11
test/data/legacy_test_preserve_comment_01.expected
Normal file
@@ -0,0 +1,11 @@
|
||||
/* A comment
|
||||
at the beginning of the file.
|
||||
*/
|
||||
.={}
|
||||
.first=1
|
||||
/* Comment before 'second'
|
||||
*/
|
||||
.second=2
|
||||
/* A comment at
|
||||
the end of the file.
|
||||
*/
|
14
test/data/legacy_test_preserve_comment_01.json
Normal file
14
test/data/legacy_test_preserve_comment_01.json
Normal file
@@ -0,0 +1,14 @@
|
||||
/* A comment
|
||||
at the beginning of the file.
|
||||
*/
|
||||
{
|
||||
"first" : 1, // comment after 'first' on the same line
|
||||
|
||||
/* Comment before 'second'
|
||||
*/
|
||||
"second" : 2
|
||||
}
|
||||
|
||||
/* A comment at
|
||||
the end of the file.
|
||||
*/
|
3
test/data/legacy_test_real_01.expected
Normal file
3
test/data/legacy_test_real_01.expected
Normal file
@@ -0,0 +1,3 @@
|
||||
// 2^33 => out of integer range, switch to double
|
||||
.=8589934592
|
||||
|
3
test/data/legacy_test_real_01.json
Normal file
3
test/data/legacy_test_real_01.json
Normal file
@@ -0,0 +1,3 @@
|
||||
// 2^33 => out of integer range, switch to double
|
||||
8589934592
|
||||
|
3
test/data/legacy_test_real_02.expected
Normal file
3
test/data/legacy_test_real_02.expected
Normal file
@@ -0,0 +1,3 @@
|
||||
// -2^32 => out of signed integer range, switch to double
|
||||
.=-4294967295
|
||||
|
3
test/data/legacy_test_real_02.json
Normal file
3
test/data/legacy_test_real_02.json
Normal file
@@ -0,0 +1,3 @@
|
||||
// -2^32 => out of signed integer range, switch to double
|
||||
-4294967295
|
||||
|
3
test/data/legacy_test_real_03.expected
Normal file
3
test/data/legacy_test_real_03.expected
Normal file
@@ -0,0 +1,3 @@
|
||||
// -2^32 => out of signed integer range, switch to double
|
||||
.=-4294967295
|
||||
|
3
test/data/legacy_test_real_03.json
Normal file
3
test/data/legacy_test_real_03.json
Normal file
@@ -0,0 +1,3 @@
|
||||
// -2^32 => out of signed integer range, switch to double
|
||||
-4294967295
|
||||
|
3
test/data/legacy_test_real_04.expected
Normal file
3
test/data/legacy_test_real_04.expected
Normal file
@@ -0,0 +1,3 @@
|
||||
// 1.2345678
|
||||
.=1.2345678
|
||||
|
3
test/data/legacy_test_real_04.json
Normal file
3
test/data/legacy_test_real_04.json
Normal file
@@ -0,0 +1,3 @@
|
||||
// 1.2345678
|
||||
12345678e-7
|
||||
|
4
test/data/legacy_test_real_05.expected
Normal file
4
test/data/legacy_test_real_05.expected
Normal file
@@ -0,0 +1,4 @@
|
||||
// 1234567.8
|
||||
.=1234567.8
|
||||
|
||||
|
3
test/data/legacy_test_real_05.json
Normal file
3
test/data/legacy_test_real_05.json
Normal file
@@ -0,0 +1,3 @@
|
||||
// 1234567.8
|
||||
0.12345678e7
|
||||
|
4
test/data/legacy_test_real_06.expected
Normal file
4
test/data/legacy_test_real_06.expected
Normal file
@@ -0,0 +1,4 @@
|
||||
// -1.2345678
|
||||
.=-1.2345678
|
||||
|
||||
|
3
test/data/legacy_test_real_06.json
Normal file
3
test/data/legacy_test_real_06.json
Normal file
@@ -0,0 +1,3 @@
|
||||
// -1.2345678
|
||||
-12345678e-7
|
||||
|
4
test/data/legacy_test_real_07.expected
Normal file
4
test/data/legacy_test_real_07.expected
Normal file
@@ -0,0 +1,4 @@
|
||||
// -1234567.8
|
||||
.=-1234567.8
|
||||
|
||||
|
3
test/data/legacy_test_real_07.json
Normal file
3
test/data/legacy_test_real_07.json
Normal file
@@ -0,0 +1,3 @@
|
||||
// -1234567.8
|
||||
-0.12345678e7
|
||||
|
4
test/data/legacy_test_real_08.expected
Normal file
4
test/data/legacy_test_real_08.expected
Normal file
@@ -0,0 +1,4 @@
|
||||
// Out of 32-bit integer range, switch to double in 32-bit mode. Length the
|
||||
// same as UINT_MAX in base 10 and digit less than UINT_MAX's last digit in
|
||||
// order to catch a bug in the parsing code.
|
||||
.=4300000001
|
4
test/data/legacy_test_real_08.json
Normal file
4
test/data/legacy_test_real_08.json
Normal file
@@ -0,0 +1,4 @@
|
||||
// Out of 32-bit integer range, switch to double in 32-bit mode. Length the
|
||||
// same as UINT_MAX in base 10 and digit less than UINT_MAX's last digit in
|
||||
// order to catch a bug in the parsing code.
|
||||
4300000001
|
4
test/data/legacy_test_real_09.expected
Normal file
4
test/data/legacy_test_real_09.expected
Normal file
@@ -0,0 +1,4 @@
|
||||
// Out of 64-bit integer range, switch to double in all modes. Length the same
|
||||
// as ULONG_MAX in base 10 and digit less than ULONG_MAX's last digit in order
|
||||
// to catch a bug in the parsing code.
|
||||
.=1.9e+19
|
4
test/data/legacy_test_real_09.json
Normal file
4
test/data/legacy_test_real_09.json
Normal file
@@ -0,0 +1,4 @@
|
||||
// Out of 64-bit integer range, switch to double in all modes. Length the same
|
||||
// as ULONG_MAX in base 10 and digit less than ULONG_MAX's last digit in order
|
||||
// to catch a bug in the parsing code.
|
||||
19000000000000000001
|
4
test/data/legacy_test_real_10.expected
Normal file
4
test/data/legacy_test_real_10.expected
Normal file
@@ -0,0 +1,4 @@
|
||||
// Out of 32-bit signed integer range, switch to double in all modes. Length
|
||||
// the same as INT_MIN in base 10 and digit less than INT_MIN's last digit in
|
||||
// order to catch a bug in the parsing code.
|
||||
.=-2200000001
|
4
test/data/legacy_test_real_10.json
Normal file
4
test/data/legacy_test_real_10.json
Normal file
@@ -0,0 +1,4 @@
|
||||
// Out of 32-bit signed integer range, switch to double in all modes. Length
|
||||
// the same as INT_MIN in base 10 and digit less than INT_MIN's last digit in
|
||||
// order to catch a bug in the parsing code.
|
||||
-2200000001
|
4
test/data/legacy_test_real_11.expected
Normal file
4
test/data/legacy_test_real_11.expected
Normal file
@@ -0,0 +1,4 @@
|
||||
// Out of 64-bit signed integer range, switch to double in all modes. Length
|
||||
// the same as LONG_MIN in base 10 and digit less than LONG_MIN's last digit in
|
||||
// order to catch a bug in the parsing code.
|
||||
.=-9.3e+18
|
4
test/data/legacy_test_real_11.json
Normal file
4
test/data/legacy_test_real_11.json
Normal file
@@ -0,0 +1,4 @@
|
||||
// Out of 64-bit signed integer range, switch to double in all modes. Length
|
||||
// the same as LONG_MIN in base 10 and digit less than LONG_MIN's last digit in
|
||||
// order to catch a bug in the parsing code.
|
||||
-9300000000000000001
|
2
test/data/legacy_test_real_12.expected
Normal file
2
test/data/legacy_test_real_12.expected
Normal file
@@ -0,0 +1,2 @@
|
||||
// 2^64 -> switch to double.
|
||||
.=1.844674407370955e+19
|
2
test/data/legacy_test_real_12.json
Normal file
2
test/data/legacy_test_real_12.json
Normal file
@@ -0,0 +1,2 @@
|
||||
// 2^64 -> switch to double.
|
||||
18446744073709551616
|
1
test/data/legacy_test_string_01.expected
Normal file
1
test/data/legacy_test_string_01.expected
Normal file
@@ -0,0 +1 @@
|
||||
.="!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
|
1
test/data/legacy_test_string_01.json
Normal file
1
test/data/legacy_test_string_01.json
Normal file
@@ -0,0 +1 @@
|
||||
"!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
|
1
test/data/legacy_test_string_02.expected
Normal file
1
test/data/legacy_test_string_02.expected
Normal file
@@ -0,0 +1 @@
|
||||
.="!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user