(self)
| 1574 | assert_equal(test.mask, control.mask) |
| 1575 | |
| 1576 | def test_ediff1d_toend(self): |
| 1577 | # Test ediff1d w/ to_end |
| 1578 | x = masked_array(np.arange(5), mask=[1, 0, 0, 0, 1]) |
| 1579 | test = ediff1d(x, to_end=masked) |
| 1580 | control = array([1, 1, 1, 4, 0], mask=[1, 0, 0, 1, 1]) |
| 1581 | assert_equal(test, control) |
| 1582 | assert_equal(test.filled(0), control.filled(0)) |
| 1583 | assert_equal(test.mask, control.mask) |
| 1584 | # |
| 1585 | test = ediff1d(x, to_end=[1, 2, 3]) |
| 1586 | control = array([1, 1, 1, 4, 1, 2, 3], mask=[1, 0, 0, 1, 0, 0, 0]) |
| 1587 | assert_equal(test, control) |
| 1588 | assert_equal(test.filled(0), control.filled(0)) |
| 1589 | assert_equal(test.mask, control.mask) |
| 1590 | |
| 1591 | def test_ediff1d_tobegin_toend(self): |
| 1592 | # Test ediff1d w/ to_begin and to_end |
nothing calls this directly
no test coverage detected