json: rewrite test data for rfc7159 compliance
This commit is contained in:
parent
0e1eaa91d3
commit
f3f969c8cb
0
test/json/bad/0000_empty.json
Normal file
0
test/json/bad/0000_empty.json
Normal file
1
test/json/bad/1000_capital_false.json
Normal file
1
test/json/bad/1000_capital_false.json
Normal file
@ -0,0 +1 @@
|
||||
[False]
|
1
test/json/bad/1000_capital_null.json
Normal file
1
test/json/bad/1000_capital_null.json
Normal file
@ -0,0 +1 @@
|
||||
[Null]
|
1
test/json/bad/1000_capital_true.json
Normal file
1
test/json/bad/1000_capital_true.json
Normal file
@ -0,0 +1 @@
|
||||
[True]
|
1
test/json/bad/1000_leading_zero.json
Normal file
1
test/json/bad/1000_leading_zero.json
Normal file
@ -0,0 +1 @@
|
||||
[ 00 ]
|
@ -1,3 +1 @@
|
||||
{
|
||||
"foo" : [1, ]
|
||||
}
|
||||
[1,]
|
||||
|
1
test/json/bad/2000_unfinished_array.json
Normal file
1
test/json/bad/2000_unfinished_array.json
Normal file
@ -0,0 +1 @@
|
||||
[
|
1
test/json/bad/2001_unfinished_array.json
Normal file
1
test/json/bad/2001_unfinished_array.json
Normal file
@ -0,0 +1 @@
|
||||
]
|
1
test/json/bad/3000_missing_array_seperator.json
Normal file
1
test/json/bad/3000_missing_array_seperator.json
Normal file
@ -0,0 +1 @@
|
||||
[1 2]
|
1
test/json/bad/3000_missing_object_key.json
Normal file
1
test/json/bad/3000_missing_object_key.json
Normal file
@ -0,0 +1 @@
|
||||
{:"bar"}
|
1
test/json/bad/3000_missing_object_seperator.json
Normal file
1
test/json/bad/3000_missing_object_seperator.json
Normal file
@ -0,0 +1 @@
|
||||
{"foo"}
|
1
test/json/bad/3000_missing_object_value.json
Normal file
1
test/json/bad/3000_missing_object_value.json
Normal file
@ -0,0 +1 @@
|
||||
{"foo":}
|
1
test/json/good/0000_false.json
Normal file
1
test/json/good/0000_false.json
Normal file
@ -0,0 +1 @@
|
||||
false
|
1
test/json/good/0000_integer.json
Normal file
1
test/json/good/0000_integer.json
Normal file
@ -0,0 +1 @@
|
||||
[0,1,-1,98465]
|
1
test/json/good/0000_null.json
Normal file
1
test/json/good/0000_null.json
Normal file
@ -0,0 +1 @@
|
||||
null
|
8
test/json/good/0000_real.json
Normal file
8
test/json/good/0000_real.json
Normal file
@ -0,0 +1,8 @@
|
||||
[
|
||||
1.0e5,
|
||||
1.0E5,
|
||||
-1.0e5,
|
||||
-1.0e-5,
|
||||
9.123e2,
|
||||
15.0e5
|
||||
]
|
1
test/json/good/0000_true.json
Normal file
1
test/json/good/0000_true.json
Normal file
@ -0,0 +1 @@
|
||||
true
|
2
test/json/good/1000_empty_array.json
Normal file
2
test/json/good/1000_empty_array.json
Normal file
@ -0,0 +1,2 @@
|
||||
[
|
||||
]
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"zero" : 0
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"neg" : -1
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"pos_low_exp" : 1e-5
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"pos_high_exp" : 1e5
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"neg_low_exp" : -4e-9
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"neg_high_exp" : 12e15
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"frac" : 1.7e-23
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"foo" : true
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"foo" : false
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"foo" : null
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"numbers" : [0, 1, 2, 3]
|
||||
}
|
1
test/json/good/2000_recursive_array.json
Normal file
1
test/json/good/2000_recursive_array.json
Normal file
@ -0,0 +1 @@
|
||||
[[null]]
|
1
test/json/good/2000_recursive_object.json
Normal file
1
test/json/good/2000_recursive_object.json
Normal file
@ -0,0 +1 @@
|
||||
{"foo":{}}
|
1
test/json/good/2001_recursive_array.json
Normal file
1
test/json/good/2001_recursive_array.json
Normal file
@ -0,0 +1 @@
|
||||
[{}]
|
1
test/json/good/2001_recursive_object.json
Normal file
1
test/json/good/2001_recursive_object.json
Normal file
@ -0,0 +1 @@
|
||||
{"foo":[]}
|
@ -1,5 +0,0 @@
|
||||
{
|
||||
"obj" : {
|
||||
"foo": "bar"
|
||||
}
|
||||
}
|
12
test/json/good/3000_string_escape.json
Normal file
12
test/json/good/3000_string_escape.json
Normal file
@ -0,0 +1,12 @@
|
||||
[
|
||||
"foo\tbar",
|
||||
"\"",
|
||||
"\\",
|
||||
"\/",
|
||||
"\b",
|
||||
"\f",
|
||||
"\n",
|
||||
"\r",
|
||||
"\t",
|
||||
"\u0062"
|
||||
]
|
Loading…
Reference in New Issue
Block a user