Exemple #1
0
def test_ordinal(G, H, J):
    """
    Test that the ordinal sum matches known results.
    """
    assert canonicalize(ordinal(G, H)) == J
Exemple #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
Exemple #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
Exemple #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
Exemple #5
0
def test_sequential(G, H, J):
    """
    Test that the sequential sum matches known results.
    """
    assert canonicalize(sequential(G, H)) == J
Exemple #6
0
def test_side(G, H, J):
    """
    Test that the side sum matches known results.
    """
    assert canonicalize(side(G, H)) == J