예제 #1
0
파일: test.py 프로젝트: JeffCarpenter/poker
 def setUp(self):
     self.hand = values_as_hand([2, 2, 3, 4, 5])
예제 #2
0
파일: test.py 프로젝트: JeffCarpenter/poker
 def setUp(self):
     self.hand = values_as_hand([1, 1, 1, 4, 5])
예제 #3
0
파일: test.py 프로젝트: JeffCarpenter/poker
 def setUp(self):
     self.hand = values_as_hand([9, 9, 9, 9, 7])
예제 #4
0
파일: test.py 프로젝트: JeffCarpenter/poker
 def runTest(self):
     one_pair = values_as_hand([2, 2, 5, 5, 6])
     two_pair = values_as_hand([1, 1, 3, 4, 7])
     self.assertGreater(one_pair, two_pair)
예제 #5
0
파일: test.py 프로젝트: JeffCarpenter/poker
 def setUp(self):
     self.hand = values_as_hand([2, 7, 4, 5, 6])
예제 #6
0
파일: test.py 프로젝트: JeffCarpenter/poker
def test_hand_category(values, category):
    hand = values_as_hand(values)
    return test_equal('%sTest' % category, hand.best_category, category)