diff options
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index cf9a35274..3a603923a 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -262,8 +262,12 @@ class test_vectorize(ScipyTestCase): f = vectorize(addsubtract) r = f([0,3,6,9],5) assert_array_equal(r,[5,8,1,4]) - - + def check_large(self): + x = linspace(-3,2,10000) + f = vectorize(lambda x: x) + y = f(x) + assert_array_equal(y, x) + class test_unwrap(ScipyTestCase): def check_simple(self): @@ -327,13 +331,6 @@ 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) - def compare_results(res,desired): |