def test_csegs_1(): i = InternalDiagonal([-1, 1]) assert i.csegs() == [[1, 0, 2], [2, 0, 1]]
def test_csegs_2(): i = InternalDiagonal([-1, 1, 1]) assert i.csegs() == [[1, 0, 2, 3], [2, 0, 1, 3], [3, 0, 1, 2]]