Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_slicing5():
assert_slicing(slicing(s[::2], 10), range(10)[::2])
def test_slicing6():
assert_slicing(slicing(s[1::2], 10), range(10)[1::2])
def test_slicing17():
assert_slicing(slicing(s[8:4:-1], 10), range(10)[8:4:-1])
def test_slicing14():
assert_slicing(slicing(s[7::-2], 10), range(10)[7::-2])
def test_multi_subscription1():
assert_slicing(slicing((1, -1), 10), [1, 9])
def test_slicing3():
assert_slicing(slicing(s[:], 4), range(4)[:])
def test_slicing2():
assert_slicing(slicing(s[:3], 10), range(10)[:3])
def test_subscription1():
assert_slicing(slicing(0, 10), [0])
def test_slicing7():
assert_slicing(slicing(s[100::2], 10), range(10)[100::2])
def test_subscription5():
with pytest.raises(TypeError):
list(slicing(1.2, 10))