Finds a Straight
This commit is contained in:
1 parent
610a48657b
commit
05ba0ebb03
2 files changed
+27
-2
No files matched your search
@@ -78,4 +78,13 @@ public class PokerGameTest {
|
||||
|
||||
assertEquals(10, result);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void straight_gives_12() throws Exception {
|
||||
String hand = "K2S3H4R5R6";
|
||||
|
||||
int result = myGame.getScore(hand);
|
||||
|
||||
assertEquals(12, result);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user