-
Notifications
You must be signed in to change notification settings - Fork 59
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
Equal if using equals() in expexted() but nevertheless get a test fail/error #39
Comments
For reference: https://stackoverflow.com/questions/10404516/how-can-i-compare-lists-for-equality-in-dart If you are using Flutter, use listEquals Edit: You may also use |
Thank you @mateusfccp that is true. So what I have to do in my context is to write a custom matcher if there is no other way. I found the CustomMatcher class in the docs. The 'actual' is implemented that is clear but where to get expected from to then return a boolean after comparing both with listEquals()? PS: I think IList is not a good solution in my context but still a good point. |
This is as solved as it will be, right? Closing for now. |
Hi Dartz Community,
I got another issue when using Dartz connected with flutter_test package.
This is my code:
This is the error:
Expected: Right<Failure, List>:<Right([ActivityModel])>
Actual: Right<Failure, List>:<Right([ActivityModel])>
For me somehow this does not make any sense.
Hopefully you can help me :)
The text was updated successfully, but these errors were encountered: