예제 #1
0
def test_CurveOrderHigh():  #End tests for CurveADT Exception cases

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

    a = CurveT(testX, testY, 3)

    assert (a.order() == None)  #Fail due to exception thrown at init
예제 #2
0
def test_CurveOrder():

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

    a = CurveT(testX, testY, 2)

    assert (a.order() == 2)