def indices_runner(start, stop, step): st = E[start:stop:step] expected = st.indices(100) print "expected", expected actual = sre_yield.slice_indices(st, 100) print "actual", actual print "array", ARR[st] assert expected == actual
def indices_runner(start, stop, step): st = E[start:stop:step] expected = st.indices(100) print("expected", expected) actual = sre_yield.slice_indices(st, 100) print("actual", actual) print("array", ARR[st]) assert expected == actual
def test_indices(self, start, stop, step): st = E[start:stop:step] expected = st.indices(100) # print("expected", expected) actual = sre_yield.slice_indices(st, 100) # print("actual", actual) # print("array", ARR[st]) self.assertEqual(expected, actual)