Added Straight Flush
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user