summaryrefslogtreecommitdiff
path: root/numpy/core/tests/test_umath.py
blob: 9cd99f7e13b26e2848fa46f13c7c15e34b6cc331 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

from scipy.testing import *
set_package_path()
from scipy.base.umath import minimum, maximum
restore_path()


class test_maximum(ScipyTestCase):
    def check_reduce_complex(self):
        assert_equal(maximum.reduce([1,2j]),1)
        assert_equal(maximum.reduce([1+3j,2j]),1+3j)

class test_minimum(ScipyTestCase):
    def check_reduce_complex(self):
        assert_equal(minimum.reduce([1,2j]),2j)

if __name__ == "__main__":
    ScipyTest().run()