Skip to content

Commit 1083c24

Browse files
committed
Add a slice test with high < low.
1 parent d6c6e22 commit 1083c24

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lib/test/test_array.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,11 @@ def test_getslice(self):
427427
array.array(self.typecode)
428428
)
429429

430+
self.assertEqual(
431+
a[2:1],
432+
array.array(self.typecode)
433+
)
434+
430435
self.assertEqual(
431436
a[1000:],
432437
array.array(self.typecode)

0 commit comments

Comments
 (0)