summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_array.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2005-01-21 21:16:51 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2005-01-21 21:16:51 (GMT)
commit1083c248dfc55dde9901919e69bcb7fb29fbb7bf (patch)
tree7c0859fd9435ac7b044d37c3678ea3c1e5a2ecd4 /Lib/test/test_array.py
parentd6c6e2224bd2318f78d00432108997e64bc32a27 (diff)
downloadcpython-1083c248dfc55dde9901919e69bcb7fb29fbb7bf.zip
cpython-1083c248dfc55dde9901919e69bcb7fb29fbb7bf.tar.gz
cpython-1083c248dfc55dde9901919e69bcb7fb29fbb7bf.tar.bz2
Add a slice test with high < low.
Diffstat (limited to 'Lib/test/test_array.py')
-rwxr-xr-xLib/test/test_array.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py
index c24b41b..078d727 100755
--- a/Lib/test/test_array.py
+++ b/Lib/test/test_array.py
@@ -428,6 +428,11 @@ class BaseTest(unittest.TestCase):
)
self.assertEqual(
+ a[2:1],
+ array.array(self.typecode)
+ )
+
+ self.assertEqual(
a[1000:],
array.array(self.typecode)
)