Closed yusufa445 closed 2 years ago
Hi @yusufa445! Does ServerFailure() == ServerFailure()
evaluate to true
? That is, have you overridden operator ==
to implement structural equality? If not, the behaviour you describe is expected, since Dart defaults to reference equality. You might want to try expect(l is ServerFailure, true);
or something similar instead?
Good luck!
Hi, Dartz community, I have another Issue when testing left data from either.
this is my repository code.
That test would be resulting in this error Expected: <Instance of 'ServerFailure'> Actual: <Instance of 'ServerFailure'>
I've made sure that ServerFailure has come from the same file and class.
Thanks.