Handles Flush

This commit is contained in:
2015-04-27 16:45:48 +02:00
parent a9a267fe58
commit fef2050f08
2 changed files with 51 additions and 7 deletions

View File

@@ -60,7 +60,7 @@ public class PokerGameTest {
assertEquals(7, result);
}
@Test
public void full_house_gives_9() throws Exception {
String hand = "S2K2R2H7S7";
@@ -69,4 +69,13 @@ public class PokerGameTest {
assertEquals(9, result);
}
@Test
public void flush_gives_10() throws Exception {
String hand = "S2S6S7S8S9";
int result = myGame.getScore(hand);
assertEquals(10, result);
}
}