示例#1
0
 def test_flush(self):
     poker = Poker()
     poker.new_game(['S6', 'S2', 'S3', 'S4', 'S5'])
     assert poker.is_flush() == True
     poker.new_game(['S6', 'S2', 'S3', 'S4', 'H5'])
     assert poker.is_flush() == False
示例#2
0
 def test_flush(self):
     poker = Poker()
     poker.new_game(["S6", "S2", "S3", "S4", "S5"])
     assert poker.is_flush() == True
     poker.new_game(["S6", "S2", "S3", "S4", "H5"])
     assert poker.is_flush() == False