Handles Flush

This commit is contained in:
crille committed 2015-04-27 16:45:48 +02:00
1 parent a9a267fe58
commit fef2050f08
2 files changed
+51 -7

No files matched your search

+10 -1
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);
}
}