def test_game_sets_on_table_extra_cards(): assert_equal( game_sets_on_table( {card('1GDE'), card('2GDE'), card('3GDE'), card('1RDE'), card('1GOE'), card('2GOE')} ), {frozenset({card('1GDE'), card('2GDE'), card('3GDE')})} )
def test_game_sets_on_table(): assert_equal( game_sets_on_table( {card('1GDE'), card('2GDE'), card('3GDE')} ), {frozenset({card('1GDE'), card('2GDE'), card('3GDE')})} )
def test_card_works(): assert_equal(card('1GDE'), ('1', 'G', 'D', 'E'))
def test_third_card_in_game_set(): assert_equal(third_card_in_game_set(card('1GDE'), card('2GDE')), card('3GDE'))
def test_card_ordering(): assert_equal(card('EDG1'), ('1', 'G', 'D', 'E'))