Ejemplo n.º 1
0
def test_CurveMaxExc():

    testX = [1, 2, 3, 4, 5, 6, 7, 8]
    testY = [1, 4, 9, 16, 25, 36, 49]

    a = CurveT(testX, testY, 2)

    assert (a.maxD() == None)  #Fail due to exception thrown at init
Ejemplo n.º 2
0
def test_CurveMax():

    testX = [1, 2, 3, 4, 5, 6, 7]
    testY = [1, 4, 9, 16, 25, 36, 49]

    a = CurveT(testX, testY, 2)

    assert (a.maxD() == 7)