summaryrefslogtreecommitdiff
path: root/scipy/base/tests/test_basic.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2005-09-14 22:28:28 +0000
committerTravis Oliphant <oliphant@enthought.com>2005-09-14 22:28:28 +0000
commit61b48697e440f76b2337c790ec5ca763cd55200b (patch)
treeda64ece2ba0b6b97deb51c36ca320c64102e9baa /scipy/base/tests/test_basic.py
parent575d373479c63a42bc4a729a058da31a74e75d3e (diff)
downloadnumpy-61b48697e440f76b2337c790ec5ca763cd55200b.tar.gz
Moving things to live under scipy
Diffstat (limited to 'scipy/base/tests/test_basic.py')
-rw-r--r--scipy/base/tests/test_basic.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/scipy/base/tests/test_basic.py b/scipy/base/tests/test_basic.py
new file mode 100644
index 000000000..5f101bf6d
--- /dev/null
+++ b/scipy/base/tests/test_basic.py
@@ -0,0 +1,21 @@
+import unittest
+import sys
+from scipy_test.testing import *
+set_package_path()
+import scipy_base;reload(scipy_base)
+from scipy_base import fastumath;reload(fastumath)
+del sys.path[0]
+
+
+class test_maximum(ScipyTestCase):
+ def check_reduce_complex(self):
+ x = [1,2]
+ assert_equal(fastumath.maximum.reduce([1,2j]),1)
+
+class test_minimum(ScipyTestCase):
+ def check_reduce_complex(self):
+ x = [1,2]
+ assert_equal(fastumath.minimum.reduce([1,2j]),2j)
+
+if __name__ == "__main__":
+ ScipyTest('scipy_base.fastumath').run()