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

numpy-svn@scip... numpy-svn@scip...
Fri Mar 30 10:39:38 CDT 2007


Author: stefan
Date: 2007-03-30 10:39:22 -0500 (Fri, 30 Mar 2007)
New Revision: 3619

Modified:
   trunk/numpy/core/tests/test_multiarray.py
Log:
Add test for record array clipping.


Modified: trunk/numpy/core/tests/test_multiarray.py
===================================================================
--- trunk/numpy/core/tests/test_multiarray.py	2007-03-30 15:03:18 UTC (rev 3618)
+++ trunk/numpy/core/tests/test_multiarray.py	2007-03-30 15:39:22 UTC (rev 3619)
@@ -395,6 +395,13 @@
             #x = self._check_type('uint',1024,-120,100,expected_min=0)
             x = self._clip_type('uint',1024,0,0)
 
+    # XXX fixme
+    def check_record_array(self,level=2):
+        rec = N.array([(-5, 2.0, 3.0), (5.0, 4.0, 3.0)],
+                      dtype=[('x', '<f8'), ('y', '<f8'), ('z', '<f8')])
+        rec['x'].clip(-0.3,0.5)
+        self._check_range(rec['x'],-0.3,0.5)
+
 # Import tests from unicode
 set_local_path()
 from test_unicode import *



More information about the Numpy-svn mailing list