Exemplo n.º 1
0
def test_ordinal(G, H, J):
    """
    Test that the ordinal sum matches known results.
    """
    assert canonicalize(ordinal(G, H)) == J
Exemplo n.º 2
0
def test_shortened_selective(G, H, J):
    """
    Test that the shortened selective sum matches known results.
    """
    assert canonicalize(shortened_selective(G, H)) == J
Exemplo n.º 3
0
def test_continued_conjunctive(G, H, J):
    """
    Test that the continued conjunctive sum matches known results.
    """
    assert canonicalize(continued_conjunctive(G, H)) == J
Exemplo n.º 4
0
def test_diminished_disjunctive(G, H, J):
    """
    Test that the diminished disjunctive sum matches known results.
    """
    assert canonicalize(diminished_disjunctive(G, H)) == J
Exemplo n.º 5
0
def test_sequential(G, H, J):
    """
    Test that the sequential sum matches known results.
    """
    assert canonicalize(sequential(G, H)) == J
Exemplo n.º 6
0
def test_side(G, H, J):
    """
    Test that the side sum matches known results.
    """
    assert canonicalize(side(G, H)) == J