From ae4de66c4d02e6616750b04e2fed76805fab14e0 Mon Sep 17 00:00:00 2001 From: cookedm Date: Tue, 18 Jul 2006 07:11:08 +0000 Subject: Add test that scalar types work (i.e., scalartype(number) == number) PPC OS X fails this for longdouble. --- numpy/core/tests/test_scalarmath.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/numpy/core/tests/test_scalarmath.py b/numpy/core/tests/test_scalarmath.py index 6b74a20bb..078114dae 100644 --- a/numpy/core/tests/test_scalarmath.py +++ b/numpy/core/tests/test_scalarmath.py @@ -15,6 +15,11 @@ types = [N.bool_, N.byte, N.ubyte, N.short, N.ushort, N.intc, N.uintc, 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) -- cgit v1.2.1