Added Straight Flush

This commit is contained in:
2015-04-28 10:02:19 +02:00
parent f0af7c90d1
commit 94f11c39f3
2 changed files with 41 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ package session3;
import static org.junit.Assert.assertEquals;
import org.junit.Ignore;
import org.junit.Test;
public class PokerGameTest {
@@ -87,4 +88,23 @@ public class PokerGameTest {
assertEquals(12, result);
}
@Test
public void straight_flush_gives_14() throws Exception {
String hand = "K2K3K4K5K6";
int result = myGame.getScore(hand);
assertEquals(14, result);
}
@Test
@Ignore
public void royal_straight_flush_gives_16() throws Exception {
String hand = "R10RKRDRKRE";
int result = myGame.getScore(hand);
assertEquals(16, result);
}
}