예제 #1
0
def test_et_2(val):
    """
    Test EntropyTriangle against known values.
    """
    et = EntropyTriangle([ex1, ex2, ex3, ex4])
    assert val in et.points
예제 #2
0
def test_et_1(d, val):
    """
    Test EntropyTriangle against known values.
    """
    assert EntropyTriangle(d).points[0] == val