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

numpy-svn at scipy.org numpy-svn at scipy.org
Tue Jul 18 03:11:10 EDT 2006


Author: cookedm
Date: 2006-07-18 02:11:08 -0500 (Tue, 18 Jul 2006)
New Revision: 2830

Modified:
   trunk/numpy/core/tests/test_scalarmath.py
Log:
Add test that scalar types work (i.e., scalartype(number) == number)
PPC OS X fails this for longdouble.


Modified: trunk/numpy/core/tests/test_scalarmath.py
===================================================================
--- trunk/numpy/core/tests/test_scalarmath.py	2006-07-18 07:10:08 UTC (rev 2829)
+++ trunk/numpy/core/tests/test_scalarmath.py	2006-07-18 07:11:08 UTC (rev 2830)
@@ -15,6 +15,11 @@
 
 class test_types(NumpyTestCase):
     def check_types(self, level=1):
+        for atype in types:
+            a = atype(1)
+            assert a == 1, "error with %r: got %r" % (atype,a)
+
+    def check_type_add(self, level=1):
         # list of types
         for k, atype in enumerate(types):
             vala = atype(3)




More information about the Numpy-svn mailing list