Example #1
0
def test_reduction_morris_2():
    cseg = Contour([7, 10, 9, 0, 2, 3, 1, 8, 6, 2, 4, 5])
    assert cseg.reduction_morris() == [[2, 3, 0, 1], 3]
Example #2
0
def test_reduction_morris_1():
    cseg = Contour([0, 4, 3, 2, 5, 5, 1])
    assert cseg.reduction_morris() == [[0, 2, 1], 2]