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

numpy-svn@scip... numpy-svn@scip...
Thu Apr 12 03:42:29 CDT 2007


Author: oliphant
Date: 2007-04-12 03:42:21 -0500 (Thu, 12 Apr 2007)
New Revision: 3709

Modified:
   trunk/numpy/core/tests/test_scalarmath.py
Log:
Add check for fix to allowing types to create arrays.

Modified: trunk/numpy/core/tests/test_scalarmath.py
===================================================================
--- trunk/numpy/core/tests/test_scalarmath.py	2007-04-12 08:38:23 UTC (rev 3708)
+++ trunk/numpy/core/tests/test_scalarmath.py	2007-04-12 08:42:21 UTC (rev 3709)
@@ -32,6 +32,12 @@
                        val.dtype.char == valo.dtype.char, \
                        "error with (%d,%d)" % (k,l)
 
+    def check_type_create(self, level=1):
+        for k, atype in enumerate(types):
+            a = array([1,2,3],atype)
+            b = atype([1,2,3])
+            assert_equal(a,b)
+
 class test_power(NumpyTestCase):
     def check_small_types(self):
         for t in [N.int8, N.int16]:



More information about the Numpy-svn mailing list