(self)
| 1530 | assert_equal(test.mask, control.mask) |
| 1531 | |
| 1532 | def test_ediff1d_toend(self): |
| 1533 | # Test ediff1d w/ to_end |
| 1534 | x = masked_array(np.arange(5), mask=[1, 0, 0, 0, 1]) |
| 1535 | test = ediff1d(x, to_end=masked) |
| 1536 | control = array([1, 1, 1, 4, 0], mask=[1, 0, 0, 1, 1]) |
| 1537 | assert_equal(test, control) |
| 1538 | assert_equal(test.filled(0), control.filled(0)) |
| 1539 | assert_equal(test.mask, control.mask) |
| 1540 | # |
| 1541 | test = ediff1d(x, to_end=[1, 2, 3]) |
| 1542 | control = array([1, 1, 1, 4, 1, 2, 3], mask=[1, 0, 0, 1, 0, 0, 0]) |
| 1543 | assert_equal(test, control) |
| 1544 | assert_equal(test.filled(0), control.filled(0)) |
| 1545 | assert_equal(test.mask, control.mask) |
| 1546 | |
| 1547 | def test_ediff1d_tobegin_toend(self): |
| 1548 | # Test ediff1d w/ to_begin and to_end |
nothing calls this directly
no test coverage detected