예제 #1
0
def test_set_multiply_multiplies_when_given_leaves_with_sets__second_multiple_elements(
):
    """."""
    assert Mul(Leaf({5, 6}), Leaf({3, 4})).apply() == {
        frozenset({5, 3}),
        frozenset({6, 3}),
        frozenset({5, 4}),
        frozenset({6, 4})
    }
예제 #2
0
def test231():
    """."""
    assert Mul(Leaf(2),
               Leaf({1, 3})).apply() == {frozenset({2, 1}),
                                         frozenset({2, 3})}
def test_set_multiply_multiplies_when_given_leaves_with_sets__second_number():
    """."""
    assert Mul(Leaf({5, 6}),
               Leaf(4)).apply() == {frozenset({5, 4}),
                                    frozenset({6, 4})}