Legger til funksjonalitet for å kikke på det første eller siste kortet i en kortstokk

This commit is contained in:
2020-03-09 13:21:52 +01:00
parent 1c1bbc6a79
commit 7a5b4fccd2
3 changed files with 36 additions and 2 deletions

View File

@ -113,4 +113,14 @@ public class ProgrammingCardDeckTest {
assertTrue(fullDeck.getCards().contains(card));
}
}
@Test
public void peekTop() {
assertEquals(programmingCard1, testDeck.peekTop());
}
@Test
public void peekBottom() {
assertEquals(programmingCard3, testDeck.peekBottom());
}
}