Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
✅ cover hashcode
  • Loading branch information
sarbagyastha committed Dec 27, 2022
commit ed46019d7f35e13704d6ea728517463a199879ed
18 changes: 14 additions & 4 deletions packages/clean_framework/test/utilities/either_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ void main() {

test('equality check', () {
expect(
const Either<bool, bool>.left(true),
const Either<bool, bool>.left(true),
const Either<bool, bool>.left(false),
const Either<bool, bool>.left(false),
);

expect(
Expand All @@ -49,13 +49,23 @@ void main() {
);

expect(
const Either<bool, bool>.left(true),
const Either<bool, bool>.left(false),
isNot(const Either<bool, bool>.right(true)),
);

expect(
const Either<bool, bool>.right(true),
isNot(const Either<bool, bool>.left(true)),
isNot(const Either<bool, bool>.left(false)),
);

expect(
const Either<bool, bool>.left(false).hashCode,
const Either<bool, bool>.left(false).hashCode,
);

expect(
const Either<bool, bool>.right(true).hashCode,
const Either<bool, bool>.right(true).hashCode,
);
});
});
Expand Down