diff options
author | David Cournapeau <cournape@gmail.com> | 2009-09-16 07:13:23 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-09-16 07:13:23 +0000 |
commit | f72c2dfd7d188f1ee9d795ba66c001aa7263c319 (patch) | |
tree | acb0dac165305a66ed77e682ebedfb6ac6cb0c6a /numpy/lib/tests/test_index_tricks.py | |
parent | a0a2b2bba65baaa1ab88fef3995911c14adaf2d4 (diff) | |
download | numpy-f72c2dfd7d188f1ee9d795ba66c001aa7263c319.tar.gz |
Move linspace and logspace into core.
Diffstat (limited to 'numpy/lib/tests/test_index_tricks.py')
-rw-r--r-- | numpy/lib/tests/test_index_tricks.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_index_tricks.py b/numpy/lib/tests/test_index_tricks.py index d7e61799a..3307cef3e 100644 --- a/numpy/lib/tests/test_index_tricks.py +++ b/numpy/lib/tests/test_index_tricks.py @@ -24,6 +24,11 @@ class TestGrid(TestCase): assert_almost_equal(b[-1],b[0]+19*0.1,11) assert_almost_equal(a[1]-a[0],2.0/9.0,11) + def test_linspace_equivalence(self): + y,st = np.linspace(2,10,retstep=1) + assert_almost_equal(st,8/49.0) + assert_array_almost_equal(y,mgrid[2:10:50j],13) + def test_nd(self): c = mgrid[-1:1:10j,-2:2:10j] d = mgrid[-1:1:0.1,-2:2:0.2] |