mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
Add a slice test with high < low.
This commit is contained in:
parent
d6c6e2224b
commit
1083c248df
1 changed files with 5 additions and 0 deletions
|
@ -427,6 +427,11 @@ class BaseTest(unittest.TestCase):
|
||||||
array.array(self.typecode)
|
array.array(self.typecode)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
self.assertEqual(
|
||||||
|
a[2:1],
|
||||||
|
array.array(self.typecode)
|
||||||
|
)
|
||||||
|
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
a[1000:],
|
a[1000:],
|
||||||
array.array(self.typecode)
|
array.array(self.typecode)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue