8000 TST: Added cases for better coverage of ediff1d · numpy/numpy@4848271 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4848271

Browse files
committed
TST: Added cases for better coverage of ediff1d
1 parent 16a98c0 commit 4848271

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

numpy/lib/tests/test_arraysetops.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,12 @@ def test_ediff1d(self):
169169
assert_array_equal([-1, 0], ediff1d(zero_elem, to_begin=-1, to_end=0))
170170
assert_array_equal([], ediff1d(one_elem))
171171
assert_array_equal([1], ediff1d(two_elem))
172+
assert_array_equal([7,1,9], ediff1d(two_elem, to_begin=7, to_end=9))
173+
assert_array_equal([5,6,1,7,8], ediff1d(two_elem, to_begin=[5,6], to_end=[7,8]))
174+
assert_array_equal([1,9], ediff1d(two_elem, to_end=9))
175+
assert_array_equal([1,7,8], ediff1d(two_elem, to_end=[7,8]))
176+
assert_array_equal([7,1], ediff1d(two_elem, to_begin=7))
177+
assert_array_equal([5,6,1], ediff1d(two_elem, to_begin=[5,6]))
172178

173179
def test_in1d(self):
174180
# we use two different sizes for the b array here to test the

0 commit comments

Comments
 (0)
0