def test_is_straight_invalid_card(self):
     argument = 'akqct'
     actual = is_poker(argument)
     expect = False
     self.assertEqual(expect, actual)
Exemplo n.º 2
0
 def test_is_poker_four_of_a_kind_numbers(self):
     expected = True
     actual = regular_expressions.is_poker("22223")
     self.assertEqual(expected, actual)
Exemplo n.º 3
0
 def test_is_poker_one_in_string(self):
     expected = False
     actual = regular_expressions.is_poker("12345")
     self.assertEqual(expected, actual)
Exemplo n.º 4
0
 def test_is_poker_three_of_a_kind(self):
     expected = True
     actual = regular_expressions.is_poker("222jk")
     self.assertEqual(expected, actual)
Exemplo n.º 5
0
 def test_is_poker_high_card(self):
     expected = True
     actual = regular_expressions.is_poker("aqj45")
     self.assertEqual(expected, actual)
Exemplo n.º 6
0
 def test_is_poker_full_hoyse(self):
     actual = regular_expressions.is_poker("88822")
     expected = True
     self.assertEqual(actual, expected)
Exemplo n.º 7
0
 def test_is_poker_straight_flush_ignoring_suits(self):
     actual = regular_expressions.is_poker("tjqka")
     expected = True
     self.assertEqual(actual, expected)
Exemplo n.º 8
0
 def test_is_poker_too_long_string(self):
     actual = regular_expressions.is_poker("aj2376")
     expected = False
     self.assertEqual(actual, expected)
Exemplo n.º 9
0
 def test_is_poker_very_long_string(self):
     actual = regular_expressions.is_poker("a2a898q3kjq")
     expected = False
     self.assertEqual(actual, expected)
Exemplo n.º 10
0
 def test_is_3_kind_invalid_card(self):
     argument = 'kkkac'
     actual = is_poker(argument)
     expect = False
     self.assertEqual(expect, actual)
Exemplo n.º 11
0
 def test_is_poker_one_char(self):
     actual = regular_expressions.is_poker("a")
     expected = False
     self.assertEqual(actual, expected)
Exemplo n.º 12
0
 def test_is_straight_number_and_letter(self):
     argument = '5432a'
     actual = is_poker(argument)
     expect = True
     self.assertEqual(expect, actual)
Exemplo n.º 13
0
 def test_is_straight_all_number(self):
     argument = '87654'
     actual = is_poker(argument)
     expect = True
     self.assertEqual(expect, actual)
Exemplo n.º 14
0
 def test_is_straight_all_letter(self):
     argument = 'akqjt'
     actual = is_poker(argument)
     expect = True
     self.assertEqual(expect, actual)
Exemplo n.º 15
0
 def test_is_poker_two_pair(self):
     actual = regular_expressions.is_poker("ttkka")
     expected = True
     self.assertEqual(actual, expected)
Exemplo n.º 16
0
 def test_is_poker_invalid_letters(self):
     actual = regular_expressions.is_poker("hello")
     expected = False
     self.assertEqual(actual, expected)
Exemplo n.º 17
0
 def test_is_poker_straight(self):
     actual = regular_expressions.is_poker("789tj")
     expected = True
     self.assertEqual(actual, expected)
Exemplo n.º 18
0
 def test_is_poker_invalid_number(self):
     actual = regular_expressions.is_poker("23461")
     expected = False
     self.assertEqual(actual, expected)
Exemplo n.º 19
0
 def test_is_poker_four_of_a_kind(self):
     actual = regular_expressions.is_poker("3333a")
     expected = True
     self.assertEqual(actual, expected)
Exemplo n.º 20
0
 def test_is_poker_five_identical_cards(self):
     actual = regular_expressions.is_poker("88888")
     expected = False
     self.assertEqual(actual, expected)
Exemplo n.º 21
0
 def test_is_poker_full_house_mix(self):
     expected = True
     actual = regular_expressions.is_poker("222jj")
     self.assertEqual(expected, actual)
Exemplo n.º 22
0
 def test_is_poker_only_valid_numbers(self):
     actual = regular_expressions.is_poker("59342")
     expected = True
     self.assertEqual(actual, expected)
Exemplo n.º 23
0
 def test_is_poker_pair(self):
     expected = True
     actual = regular_expressions.is_poker("66jqk")
     self.assertEqual(expected, actual)
Exemplo n.º 24
0
 def test_is_poker_empty_string(self):
     actual = regular_expressions.is_poker("")
     expected = False
     self.assertEqual(actual, expected)
Exemplo n.º 25
0
 def test_is_poker_six_cards(self):
     expected = False
     actual = regular_expressions.is_poker("ajqk34")
     self.assertEqual(expected, actual)
Exemplo n.º 26
0
 def test_is_poker_high_card_mix(self):
     actual = regular_expressions.is_poker("jkqt5")
     expected = True
     self.assertEqual(actual, expected)
Exemplo n.º 27
0
 def test_is_poker_five_of_a_kind(self):
     expected = False
     actual = regular_expressions.is_poker("jjjjj")
     self.assertEqual(expected, actual)
Exemplo n.º 28
0
 def test_is_poker_one_pair(self):
     actual = regular_expressions.is_poker("33taq")
     expected = True
     self.assertEqual(actual, expected)
Exemplo n.º 29
0
 def test_is_poker_invalid_letters(self):
     expected = False
     actual = regular_expressions.is_poker("3457o")
     self.assertEqual(expected, actual)
Exemplo n.º 30
0
 def test_is_full_house_number_and_letter(self):
     argument = '222aa'
     actual = is_poker(argument)
     expect = True
     self.assertEqual(expect, actual)