(self)
| 782 | assert_equal(out.dtype, exp.dtype) |
| 783 | |
| 784 | def test_subclass(self): |
| 785 | x = ma.array([[1, 2], [3, 4], [5, 6], [7, 8], [9, 10]], |
| 786 | mask=[[False, False], [True, False], |
| 787 | [False, True], [True, True], [False, False]]) |
| 788 | out = diff(x) |
| 789 | assert_array_equal(out.data, [[1], [1], [1], [1], [1]]) |
| 790 | assert_array_equal(out.mask, [[False], [True], |
| 791 | [True], [True], [False]]) |
| 792 | assert_(type(out) is type(x)) |
| 793 | |
| 794 | out3 = diff(x, n=3) |
| 795 | assert_array_equal(out3.data, [[], [], [], [], []]) |
| 796 | assert_array_equal(out3.mask, [[], [], [], [], []]) |
| 797 | assert_(type(out3) is type(x)) |
| 798 | |
| 799 | def test_prepend(self): |
| 800 | x = np.arange(5) + 1 |
nothing calls this directly
no test coverage detected