Exemple #1
0
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
Exemple #2
0
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
Exemple #3
0
 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)