You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However I'm getting an issue on comparison even though GraphQLResult is Equatable. The error is as follows:
✘ Expectation failed:(response →{"data":{"findSingleOrganization":{"displayName":"Acme Corporation","details":"A leading technology company","domain":"acme.com","slug":"acme-corp"}}})==(expected →{"data":{"findSingleOrganization":{"slug":"acme-corp","displayName":"Acme Corporation","details":"A leading technology company","domain":"acme.com"}}})
Which we can see that the data is the same, the only thing is that the data is in differing orders:
[{"data":{"findSingleOrganization":{"details":"A leading technology company","domain":"acme.com","slug":"acme-corp","displayName":"Acme Corporation"}}},{"data":{"findSingleOrganization":{"slug":"acme-corp","displayName":"Acme Corporation","details":"A leading technology company","domain":"acme.com"}}}]
Problem
Currently can't compare two
GraphQLResult
even though the data is the same.I'm currently using swift-testing with Swift 6.0.2
However I'm getting an issue on comparison even though
GraphQLResult
isEquatable
. The error is as follows:Which we can see that the data is the same, the only thing is that the data is in differing orders:
What's the proper way to compare the results?
In addition, I used
The text was updated successfully, but these errors were encountered: