mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-06-28 20:24:43 +02:00
Legger til funksjonalitet for å kikke på det første eller siste kortet i en kortstokk
This commit is contained in:
@ -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());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user