From 964039632baab1c44e700693dce1b130db5d6938 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Thu, 13 Apr 2006 15:13:57 +0000 Subject: Fix segfault on indexing (but functionality still not working). Add vectorize test-case (ticket #52). Improve comments on broadcast failure. --- numpy/lib/tests/test_function_base.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'numpy/lib/tests/test_function_base.py') 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) -- cgit v1.2.1