Skip to content
Browse files

remove the errors_struct test entries

I think they are of questionable usefulness and require a lot of
machinery that is not clearly going to be worth implementing in
other implementations, and which is also not necessarily going
to work for data-descent methods other than dicts and arrays.
  • Loading branch information...
1 parent e29e60e commit 66b8f974e31511226b0a7e3fbff2a2b493c604d0 @rjbs committed Jul 1, 2012
View
6 spec/schemata/multi/all-ii.json
@@ -20,8 +20,7 @@
[
{ "data": [ ], "check": [ "of", 0 ], "error": [ "value" ] },
{ "data": [ ], "check": [ "of", 1 ], "error": [ "range" ] }
- ],
- "errors_struct": "value,range"
+ ]
}
},
"str": {
@@ -30,8 +29,7 @@
[
{ "data": [ ], "check": [ "of", 0 ], "error": [ "type" ] },
{ "data": [ ], "check": [ "of", 1 ], "error": [ "type" ] }
- ],
- "errors_struct": "type,type"
+ ]
}
}
}
View
4 spec/schemata/multi/array-3-int.json
@@ -12,9 +12,7 @@
[
{ "data": [ ], "check": [ ], "error": [ "size" ] },
{ "data": [ 0 ], "check": [ "contents" ], "error": [ "type" ] }
- ],
- "errors_struct":
- [ "type", null, "size" ]
+ ]
}
}
}
View
4 spec/schemata/multi/map-int.json
@@ -13,9 +13,7 @@
[
{ "data": [ "opt" ], "check": [ "values" ], "error": [ "type" ] },
{ "data": [ "rest" ], "check": [ "values" ], "error": [ "type" ] }
- ],
- "errors_struct":
- { "opt": "type", "rest": "type" }
+ ]
}
}
}
View
4 spec/schemata/multi/rec-key-opt-rest.json
@@ -33,9 +33,7 @@
"check": [ "rest", "values" ],
"error": [ "type" ]
}
- ],
- "errors_struct":
- { "key": "missing", "opt": "type", "rest": "type" }
+ ]
}
}
}
View
8 spec/schemata/multi/seq-ii-2bools.json
@@ -18,9 +18,7 @@
[
{ "data": [ ], "check": [ ], "error": [ "size" ] },
{ "data": [ 0 ], "check": [ "contents", 0 ], "error": [ "type" ] }
- ],
- "errors_struct":
- [ "type", "size" ]
+ ]
},
"0-str-3-T-str": {
"errors":
@@ -29,9 +27,7 @@
{ "data": [ ], "check": [ "tail" ], "error": [ "size" ] },
{ "data": [ 2 ], "check": [ "tail", "contents" ], "error": [ "type" ] },
{ "data": [ 4 ], "check": [ "tail", "contents" ], "error": [ "type" ] }
- ],
- "errors_struct":
- [ null, "type", "type", null, "type", "size" ]
+ ]
}
}
}
View
4 spec/schemata/multi/seq-ii.json
@@ -11,9 +11,7 @@
[
{ "data": [ 1 ], "check": [ "contents", 1 ], "error": [ "type" ] },
{ "data": [ ], "check": [ ], "error": [ "size" ] }
- ],
- "errors_struct":
- [ null, "type", null, "size" ]
+ ]
}
}
}
View
36 spec/spec.json
@@ -1,5 +1,5 @@
{
- "count" : 1633,
+ "count" : 1625,
"tests" : {
"all-2recs" : {
"schema" : {
@@ -8653,7 +8653,6 @@
]
}
],
- "errors_struct" : "value,range",
"input" : "5"
},
"str/x" : {
@@ -8679,7 +8678,6 @@
]
}
],
- "errors_struct" : "type,type",
"input" : "\"x\""
}
}
@@ -8717,11 +8715,6 @@
]
}
],
- "errors_struct" : [
- "type",
- null,
- "size"
- ],
"input" : "[\"string\", 1 ]"
}
}
@@ -8759,10 +8752,6 @@
]
}
],
- "errors_struct" : {
- "opt" : "type",
- "rest" : "type"
- },
"input" : "{\"key\": 0, \"opt\": true, \"rest\": false}"
}
}
@@ -8868,11 +8857,6 @@
]
}
],
- "errors_struct" : {
- "key" : "missing",
- "opt" : "type",
- "rest" : "type"
- },
"input" : "{\"opt\": \"pants\", \"rest\": \"pants\"}"
}
}
@@ -8912,12 +8896,6 @@
]
}
],
- "errors_struct" : [
- null,
- "type",
- null,
- "size"
- ],
"input" : "[ 0, \"string\", 3 ]"
}
}
@@ -8992,14 +8970,6 @@
]
}
],
- "errors_struct" : [
- null,
- "type",
- "type",
- null,
- "type",
- "size"
- ],
"input" : "[ 0, \"string\", 3, true, \"false\" ]"
},
"arr/str" : {
@@ -9024,10 +8994,6 @@
]
}
],
- "errors_struct" : [
- "type",
- "size"
- ],
"input" : "[\"string\" ]"
}
}

0 comments on commit 66b8f97

Please sign in to comment.
Something went wrong with that request. Please try again.