コード例 #1
0
ファイル: test.py プロジェクト: andrisbriedis/poker
 def test_high_card_wins(self):
     handOne = Hand("KS 2H 5C JD TD")
     handTwo = Hand("3S 4C 9D QC 6H")
     result = handOne.compare_with(handTwo)
     self.assertEqual("Win", result)
コード例 #2
0
ファイル: test.py プロジェクト: andrisbriedis/poker
 def test_highest_pair_wins(self):
     handOne = Hand("KS KH 5C JD TD")
     handTwo = Hand("2D 2C 9D AC 6H")
     result = handOne.compare_with(handTwo)
     self.assertEqual("Win", result)
コード例 #3
0
ファイル: test.py プロジェクト: andrisbriedis/poker
 def test_three_of_a_kind_wins_pair(self):
     handOne = Hand("KS KH 5C JD TD")
     handTwo = Hand("2D 2C 2H AC 6H")
     result = handOne.compare_with(handTwo)
     self.assertEqual("Loss", result)
コード例 #4
0
ファイル: test.py プロジェクト: andrisbriedis/poker
 def test_high_card_pair_wins(self):
     handOne = Hand("KS KH 5C JD TD")
     handTwo = Hand("KD KC 9D AC 6H")
     result = handOne.compare_with(handTwo)
     self.assertEqual("Loss", result)