Bytter != med .equals i testShuffle()

This commit is contained in:
Kristian Knarvik 2020-03-03 21:22:36 +01:00
parent 326f4d5755
commit 8aa755237d

View File

@ -93,7 +93,7 @@ public class ProgrammingCardDeckTest {
for (int i = 0; i < 10; i++) { for (int i = 0; i < 10; i++) {
testDeck.shuffle(); testDeck.shuffle();
List<ProgrammingCard> afterShuffle = testDeck.getCards(); List<ProgrammingCard> afterShuffle = testDeck.getCards();
if (beforeShuffle != afterShuffle) { if (!beforeShuffle.equals(afterShuffle)) {
return; return;
} }
} }