@@ -139,7 +139,7 @@ func runTest(tc testCase, dataDir string, path string) (bool, error) {
139
139
140
140
var failed bool
141
141
expr , unQuoted := replaceQuotesInPaths (tc .Expr )
142
- got , err := eval (expr , tc .Bindings , data )
142
+ got , _ := eval (expr , tc .Bindings , data )
143
143
144
144
if ! equalResults (got , tc .Result ) {
145
145
failed = true
@@ -161,16 +161,18 @@ func runTest(tc testCase, dataDir string, path string) (bool, error) {
161
161
fmt .Fprintf (os .Stderr , "Actual Result: %v [%T]\n " , got , got )
162
162
}
163
163
164
- var exp error
165
- if tc .Undefined {
166
- exp = jsonata .ErrUndefined
167
- } else {
168
- exp = convertError (tc .Error )
169
- }
170
-
171
- if ! reflect .DeepEqual (err , exp ) {
172
- // TODO: Compare actual/expected errors
173
- }
164
+ // TODO this block is commented out to make staticcheck happy,
165
+ // but we should check that the error is the same as the js one
166
+ // var exp error
167
+ // if tc.Undefined {
168
+ // exp = jsonata.ErrUndefined
169
+ // } else {
170
+ // exp = convertError(tc.Error)
171
+ // }
172
+
173
+ // if !reflect.DeepEqual(err, exp) {
174
+ // TODO: Compare actual/expected errors
175
+ // }
174
176
175
177
return failed , nil
176
178
}
0 commit comments