diff options
author | dhuard <dhuard@localhost> | 2010-05-25 16:48:09 +0000 |
---|---|---|
committer | dhuard <dhuard@localhost> | 2010-05-25 16:48:09 +0000 |
commit | 9b0b46750ee6688f1491b7a7835bb69a16a2074f (patch) | |
tree | 90dad861f9353364fd847b097aafdef6d7a4dfc9 /numpy | |
parent | c7e5351461e4b0e43bf9b78b0c365e400bd39721 (diff) | |
download | numpy-9b0b46750ee6688f1491b7a7835bb69a16a2074f.tar.gz |
Added tests for float96 for ldexp (ticket #866).
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/tests/test_umath.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/core/tests/test_umath.py b/numpy/core/tests/test_umath.py index 21ee1a780..023fddb7c 100644 --- a/numpy/core/tests/test_umath.py +++ b/numpy/core/tests/test_umath.py @@ -358,7 +358,11 @@ class TestLdexp(TestCase): assert_almost_equal(ncu.ldexp(2., 3), 16.) assert_almost_equal(ncu.ldexp(np.array(2., np.float32), np.array(3, np.int16)), 16.) assert_almost_equal(ncu.ldexp(np.array(2., np.float32), np.array(3, np.int32)), 16.) + assert_almost_equal(ncu.ldexp(np.array(2., np.float64), np.array(3, np.int16)), 16.) assert_almost_equal(ncu.ldexp(np.array(2., np.float64), np.array(3, np.int32)), 16.) + assert_almost_equal(ncu.ldexp(np.array(2., np.float96), np.array(3, np.int16)), 16.) + assert_almost_equal(ncu.ldexp(np.array(2., np.float96), np.array(3, np.int32)), 16.) + class TestMaximum(TestCase): def test_reduce_complex(self): |