(self)
| 1515 | assert_equal(test.mask, control.mask) |
| 1516 | |
| 1517 | def test_ediff1d_tobegin(self): |
| 1518 | # Test ediff1d w/ to_begin |
| 1519 | x = masked_array(np.arange(5), mask=[1, 0, 0, 0, 1]) |
| 1520 | test = ediff1d(x, to_begin=masked) |
| 1521 | control = array([0, 1, 1, 1, 4], mask=[1, 1, 0, 0, 1]) |
| 1522 | assert_equal(test, control) |
| 1523 | assert_equal(test.filled(0), control.filled(0)) |
| 1524 | assert_equal(test.mask, control.mask) |
| 1525 | # |
| 1526 | test = ediff1d(x, to_begin=[1, 2, 3]) |
| 1527 | control = array([1, 2, 3, 1, 1, 1, 4], mask=[0, 0, 0, 1, 0, 0, 1]) |
| 1528 | assert_equal(test, control) |
| 1529 | assert_equal(test.filled(0), control.filled(0)) |
| 1530 | assert_equal(test.mask, control.mask) |
| 1531 | |
| 1532 | def test_ediff1d_toend(self): |
| 1533 | # Test ediff1d w/ to_end |
nothing calls this directly
no test coverage detected