Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fails compliance tests for benchmarks, functions, literal, and syntax. #33

Open
russt opened this issue Aug 11, 2018 · 0 comments
Open

Comments

@russt
Copy link

russt commented Aug 11, 2018

Go version of jmespath is failing compliance tests in the following suites: benchmarks, functions, literal, and syntax.

The python version fails only in benchmarks suite.

% jp-compliance -e jp -t benchmarks
'error'

% jp-compliance -e jp -t functions
.................
FAIL functions,0,17
The expression: avg(empty_list)
was suppose to give: null
for the JSON: {"foo": -1, "zero": 0, "numbers": [-1, 3, 4, 5], "array": [-1, 3, 4, 5, "a", "100"], "strings": ["a", "b", "c"], "decimals": [1.01, 1.2, -1.5], "str": "Str", "false": false, "empty_list": [], "empty_hash": {}, "objects": {"foo": "bar", "bar": "baz"}, "null_key": null}
but instead gave: ""
..........................................................................................................................................................
FAIL

% jp-compliance -e jp -t literal
........................................
FAIL literal,2,12
The expression: '\\'
was suppose to give: "\\\\"
for the JSON: {}
but instead gave: ""
FAIL

% jp-compliance -e jp -t syntax
...............................................
FAIL syntax,8,1
The expression: [:::]
was suppose to have non zero for error error: syntax
but instead gave rc of: 0, stderr: 
.....................................................................................
OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant