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

numpy-svn at scipy.org numpy-svn at scipy.org
Sat May 24 18:44:12 EDT 2008


Author: charris
Date: 2008-05-24 17:44:09 -0500 (Sat, 24 May 2008)
New Revision: 5232

Modified:
   trunk/numpy/core/tests/test_ufunc.py
Log:
Start work on testing ufuncs.


Modified: trunk/numpy/core/tests/test_ufunc.py
===================================================================
--- trunk/numpy/core/tests/test_ufunc.py	2008-05-24 16:41:19 UTC (rev 5231)
+++ trunk/numpy/core/tests/test_ufunc.py	2008-05-24 22:44:09 UTC (rev 5232)
@@ -147,5 +147,78 @@
         # check PyUFunc_On_Om
         # fixme -- I don't know how to do this yet
 
+    def check_all_ufunc(self) :
+        """Try to check presence and results of all ufuncs.
+
+        The list of ufuncs comes from generate_umath.py and is as follows:
+
+        add
+        subtract
+        multiply
+        divide
+        floor_divide
+        true_divide
+        conjugate
+        fmod
+        square
+        reciprocal
+        ones_like
+        power
+        absolute
+        negative
+        sign
+        greater
+        greate_equal
+        less
+        less_equal
+        equal
+        not_equal
+        logical_and
+        logical_or
+        logical_xor
+        maximum
+        minimum
+        bitwise_and
+        bitwise_or
+        bitwise_xor
+        invert
+        left_shift
+        right_shift
+        degrees
+        radians
+        arccos
+        arccosh
+        arcsin
+        arcsinh
+        arctan
+        arctanh
+        cos
+        sin
+        tan
+        cosh
+        sinh
+        tanh
+        exp
+        expm1
+        log
+        log10
+        log1p
+        sqrt
+        ceil
+        fabs
+        floor
+        rint
+        arctan2
+        remainder
+        hypot
+        isnan
+        isinf
+        isfinite
+        signbit
+        modf
+
+        """
+        pass
+
 if __name__ == "__main__":
     NumpyTest().run()




More information about the Numpy-svn mailing list