refactor: adapted equality test to pick coverage

pull/3/head
alestiago 4 years ago
parent d6fe78df28
commit 2b9a683cd7

@ -9,7 +9,8 @@ void main() {
});
test('supports value equality', () {
expect(const BallLost(), equals(const BallLost()));
// ignore: prefer_const_constructors
expect(BallLost(), equals(const BallLost()));
});
});
@ -20,6 +21,7 @@ void main() {
test('supports value equality', () {
expect(const Scored(points: 1), equals(const Scored(points: 1)));
expect(const Scored(points: 1), isNot(equals(const Scored(points: 2))));
});
test(

@ -103,7 +103,7 @@ void main() {
score: gameState.score + 1,
balls: gameState.balls + 1,
);
expect(gameState, isNot(otherGameState));
expect(gameState, isNot(equals(otherGameState)));
expect(
gameState.copyWith(

Loading…
Cancel
Save