def test_one_argument_exclusive(self): for n in old_range(-5, 6): a = new_slice(n) b = old_slice(n) self.assertEqual(a, b)
def test_three_argument_inclusive(self): for (m, n) in product(RANGE(-5, 6), repeat=2): for s in [-2, -1, 1, 2]: a = new_slice[m, n, s] b = old_slice(m, 1 + n, s) self.assertEqual(a, b)
def test_one_argument_float_inclusive(self): for x in [-1.0, 0.0, 1.0]: a = new_slice[x] b = old_slice(1, 1 + x) self.assertEqual(a, b)
def test_two_argument_inclusive(self): for (m, n) in product(RANGE(-5, 6), repeat=2): a = new_slice[m, n] b = old_slice(m, 1 + n) self.assertEqual(a, b)
def test_one_argument_inclusive(self): for n in old_range(-5, 6): a = new_slice[n] b = old_slice(1, 1 + n) self.assertEqual(a, b)