示例#1
0
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')})}
    )
示例#2
0
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')})}
    )
示例#3
0
def test_card_works():
    assert_equal(card('1GDE'), ('1', 'G', 'D', 'E'))
示例#4
0
def test_third_card_in_game_set():
    assert_equal(third_card_in_game_set(card('1GDE'),
        card('2GDE')), card('3GDE'))
示例#5
0
def test_card_ordering():
    assert_equal(card('EDG1'), ('1', 'G', 'D', 'E'))