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

FAIL: TestJSONQ_SortBy_float_ascending_order #96

Open
smirnoal opened this issue Aug 30, 2022 · 0 comments
Open

FAIL: TestJSONQ_SortBy_float_ascending_order #96

smirnoal opened this issue Aug 30, 2022 · 0 comments

Comments

@smirnoal
Copy link

a unit test is failing when compiling with golang1.19

 % go version
go version go1.19 darwin/amd64
% make test
go test -timeout 60s  ./...
--- FAIL: TestJSONQ_SortBy_float_ascending_order (0.00s)
    jsonq_testdata_test.go:134: Tag: sorting array of object by its key (price-float64) in ascending desc
        Expected: [{"id":null,"name":"HP core i3 SSD","price":850},{"id":4,"name":"Fujitsu","price":850},{"id":5,"key":2300,"name":"HP core i5","price":850},{"id":6,"name":"HP core i7","price":950},{"id":3,"name":"Sony VAIO","price":1200},{"id":1,"name":"MacBook Pro 13 inch retina","price":1350},{"id":2,"name":"MacBook Pro 15 inch retina","price":1700}]
        Got: [{"id":4,"name":"Fujitsu","price":850},{"id":5,"key":2300,"name":"HP core i5","price":850},{"id":null,"name":"HP core i3 SSD","price":850},{"id":6,"name":"HP core i7","price":950},{"id":3,"name":"Sony VAIO","price":1200},{"id":1,"name":"MacBook Pro 13 inch retina","price":1350},{"id":2,"name":"MacBook Pro 15 inch retina","price":1700}]
FAIL
FAIL	github.com/thedevsaddam/gojsonq/v2	0.353s
FAIL
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