Skip to content

Commit b09407a

Browse files
committed
Add set list slice test.
1 parent dbed99d commit b09407a

File tree

1 file changed

+3
-0
lines changed
  • graalpython/com.oracle.graal.python.test/src/tests

1 file changed

+3
-0
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_list.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,9 @@ def test_set_slice(self):
313313
a = [1, 2]
314314
a[:] = (1, 2, 4, 5)
315315
self.assertEqual([1, 2, 4, 5], a)
316+
a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
317+
a[0:10:2] = [10, 30, 50, 70, 90]
318+
self.assertEqual([10, 2, 30, 4, 50, 6, 70, 8, 90, 10], a)
316319

317320
def test_set_slice_class_iter(self):
318321

0 commit comments

Comments
 (0)