(self)
| 1589 | assert_equal(test.mask, control.mask) |
| 1590 | |
| 1591 | def test_ediff1d_tobegin_toend(self): |
| 1592 | # Test ediff1d w/ to_begin and to_end |
| 1593 | x = masked_array(np.arange(5), mask=[1, 0, 0, 0, 1]) |
| 1594 | test = ediff1d(x, to_end=masked, to_begin=masked) |
| 1595 | control = array([0, 1, 1, 1, 4, 0], mask=[1, 1, 0, 0, 1, 1]) |
| 1596 | assert_equal(test, control) |
| 1597 | assert_equal(test.filled(0), control.filled(0)) |
| 1598 | assert_equal(test.mask, control.mask) |
| 1599 | # |
| 1600 | test = ediff1d(x, to_end=[1, 2, 3], to_begin=masked) |
| 1601 | control = array([0, 1, 1, 1, 4, 1, 2, 3], |
| 1602 | mask=[1, 1, 0, 0, 1, 0, 0, 0]) |
| 1603 | assert_equal(test, control) |
| 1604 | assert_equal(test.filled(0), control.filled(0)) |
| 1605 | assert_equal(test.mask, control.mask) |
| 1606 | |
| 1607 | def test_ediff1d_ndarray(self): |
| 1608 | # Test ediff1d w/ a ndarray |
nothing calls this directly
no test coverage detected