diff options
author | Han Genuit <hangenuit@gmail.com> | 2012-09-07 09:06:38 +0200 |
---|---|---|
committer | Han Genuit <hangenuit@gmail.com> | 2012-09-07 09:06:38 +0200 |
commit | 1688b29fb1ea4e548762ae79522c50abce88d55b (patch) | |
tree | f95fa11c49513e4e7fe364452ccb2227cae889d3 /numpy | |
parent | 1e6f7a7db94afc69f88ebf0b0235888dc377ce25 (diff) | |
download | numpy-1688b29fb1ea4e548762ae79522c50abce88d55b.tar.gz |
TST: Add test for boolean insert
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index b619a3ffe..da3eb2b84 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -147,6 +147,8 @@ class TestInsert(TestCase): assert_equal(insert(a, [1, 1, 1], [1, 2, 3]), [1, 1, 2, 3, 2, 3]) assert_equal(insert(a, 1,[1,2,3]), [1, 1, 2, 3, 2, 3]) assert_equal(insert(a,[1,2,3],9),[1,9,2,9,3,9]) + b = np.array([0, 1], dtype=np.float64) + assert_equal(insert(b, 0, b[0]), [0., 0., 1.]) def test_multidim(self): a = [[1, 1, 1]] r = [[2, 2, 2], |