def test_winner_two_pairs_2(): assert winner("10C 10S QH KD QC", "10D 10H AD AS JS") == 2
def test_winner_four_of_a_kind_1(): assert winner("10C 10S 10H 10D AC", "5S 5H 5D 5C JS") == 1
def test_winner_two_pairs_1(): assert winner("10C 10S AH 3D AC", "10D 10H AD AS JS") == 2
def test_winner_pair_1(): assert winner("10C 10S KC QC AC", "AS AH KS 10S JS") == 2
def test_winner_full_house_1(): assert winner("10C 10S 10H QC QS", "AS AH AC 9S 9H") == 2
def test_winner_flush_2(): assert winner("2C 3C 4C 5C 6C", "2S 3S 4S 5S 6S") == 0
def test_winner_flush_3(): assert winner("10C JC KC QC AC", "AS QS KS 10S JS") == 0
def test_winner_7(): assert winner("AD 2H 5S 9C 3D", "2C 3H 4S 8C AH") == 1
def test_winner_flush_1(): assert winner("2C 3C 4C AC JC", "3S 6S 4S QS KS") == 1
def test_winner_6(): assert winner("2C 2H 4S AD JH", "3C 3H 4S QD KH") == 2
def test_winner_4(): assert winner("2C 3H 4S 2D AH", "2C 3H 4S AD KH") == 1
def test_winner_2(): assert winner("2C 3H 4S 2D AH", "2C 3H 4S 2D AH") == 0
def test_winner_1(): # a pair in hand1 assert winner("2C 3H 4S 2D AH", "2C 3H 4S AD KH") == 1
def test_winner(): assert winner("2C 3H 4S AD AH", "2C 3H 4S KD KH") == 1