summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-04-13 15:13:57 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-04-13 15:13:57 +0000
commit964039632baab1c44e700693dce1b130db5d6938 (patch)
treeb4d63f0a953e2f5dbdb19b48bc20dd0ad376ebfb /numpy/lib/tests/test_function_base.py
parent6eec6faa0d5fe660305d5f3014a442eefd0f656d (diff)
downloadnumpy-964039632baab1c44e700693dce1b130db5d6938.tar.gz
Fix segfault on indexing (but functionality still not working). Add vectorize test-case (ticket #52). Improve comments on broadcast failure.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r--numpy/lib/tests/test_function_base.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py
index fb8ae9763..cf9a35274 100644
--- a/numpy/lib/tests/test_function_base.py
+++ b/numpy/lib/tests/test_function_base.py
@@ -327,7 +327,12 @@ class test_histogram(ScipyTestCase):
(a,b)=histogram(linspace(0,10,100))
assert(all(a==10))
-
+class test_vectorize( ScipyTestCase ):
+ def check_vectorize( self ):
+ x = linspace(-3,2,10000)
+ f = vectorize(lambda x: x)
+ y = f(x)
+ assert_array_equal(y, x)