8000 TST: Add test for boolean insert · numpy/numpy@1688b29 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1688b29

Browse files
committed
TST: Add test for boolean insert
1 parent 1e6f7a7 commit 1688b29

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

numpy/lib/tests/test_function_base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ def test_basic(self):
147147
assert_equal(insert(a, [1, 1, 1], [1, 2, 3]), [1, 1, 2, 3, 2, 3])
148148
assert_equal(insert(a, 1,[1,2,3]), [1, 1, 2, 3, 2, 3])
149149
assert_equal(insert(a,[1,2,3],9),[1,9,2,9,3,9])
150+
b = np.array([0, 1], dtype=np.float64)
151+
assert_equal(insert(b, 0, b[0]), [0., 0., 1.])
150152
def test_multidim(self):
151153
a = [[1, 1, 1]]
152154
r = [[2, 2, 2],

0 commit comments

Comments
 (0)
0