(self)
| 1506 | assert_equal(test[2], [0]) |
| 1507 | |
| 1508 | def test_ediff1d(self): |
| 1509 | # Tests mediff1d |
| 1510 | x = masked_array(np.arange(5), mask=[1, 0, 0, 0, 1]) |
| 1511 | control = array([1, 1, 1, 4], mask=[1, 0, 0, 1]) |
| 1512 | test = ediff1d(x) |
| 1513 | assert_equal(test, control) |
| 1514 | assert_equal(test.filled(0), control.filled(0)) |
| 1515 | assert_equal(test.mask, control.mask) |
| 1516 | |
| 1517 | def test_ediff1d_tobegin(self): |
| 1518 | # Test ediff1d w/ to_begin |
nothing calls this directly
no test coverage detected