[Numpy-svn] r3492 - trunk/numpy/core/tests

numpy-svn at scipy.org numpy-svn at scipy.org
Wed Jan 3 08:15:32 CST 2007


Author: stefan
Date: 2007-01-03 08:15:17 -0600 (Wed, 03 Jan 2007)
New Revision: 3492

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
Test for ticket #374.


Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2006-12-24 09:02:34 UTC (rev 3491)
+++ trunk/numpy/core/tests/test_regression.py	2007-01-03 14:15:17 UTC (rev 3492)
@@ -581,6 +581,13 @@
                   N.rec.fromarrays([(1,2),(3,4)])]:
             assert(a.dtype in [dt0,dt1])
 
+    def check_random_shuffle(self, level=rlevel):
+        """Ticket #374"""
+        a = N.arange(5).reshape((5,1))
+        b = a.copy()
+        N.random.shuffle(b)
+        assert_equal(sorted(b),a)
+
     def check_refcount_vectorize(self, level=rlevel):
         """Ticket #378"""
         def p(x,y): return 123



More information about the Numpy-svn mailing list