[Numpy-svn] r2910 - trunk/numpy/core/tests
numpy-svn at scipy.org
numpy-svn at scipy.org
Wed Jul 26 18:12:13 EDT 2006
Author: stefan
Date: 2006-07-26 17:12:06 -0500 (Wed, 26 Jul 2006)
New Revision: 2910
Modified:
trunk/numpy/core/tests/test_regression.py
Log:
Add tests for ticket #205.
Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py 2006-07-26 21:14:14 UTC (rev 2909)
+++ trunk/numpy/core/tests/test_regression.py 2006-07-26 22:12:06 UTC (rev 2910)
@@ -312,5 +312,15 @@
# Correct way
N.array([(1,'object')],dt)
+ def check_zero_sized_array_indexing(self,level=rlevel):
+ """Ticket #205"""
+ tmp = N.array([])
+ def index_tmp(): tmp[N.array(10)]
+ self.failUnlessRaises(IndexError, index_tmp)
+
+ def check_unique_zero_sized(self,level=rlevel):
+ """Ticket #205"""
+ assert_array_equal([], N.unique(N.array([])))
+
if __name__ == "__main__":
NumpyTest().run()
More information about the Numpy-svn
mailing list