def test_symmetry_index_2(): cseg = Contour([0, 2, 1]) assert cseg.symmetry_index() == 0
def test_symmetry_index_3(): cseg = Contour([0, 1, 3, 4, 2, 5, 6]) assert cseg.symmetry_index() == 0.5
def test_symmetry_index_1(): cseg = Contour([1, 0, 3, 2]) assert cseg.symmetry_index() == 1