(self)
| 113 | return x, y, a10, m1, m2, xm, ym, z, zm, xf, s |
| 114 | |
| 115 | def test_testBasic1d(self): |
| 116 | # Test of basic array creation and properties in 1 dimension. |
| 117 | x, _, _, m1, _, xm, _, _, _, xf, s = self._create_data() |
| 118 | assert_(not isMaskedArray(x)) |
| 119 | assert_(isMaskedArray(xm)) |
| 120 | assert_equal(shape(xm), s) |
| 121 | assert_equal(xm.shape, s) |
| 122 | assert_equal(xm.dtype, x.dtype) |
| 123 | assert_equal(xm.size, reduce(lambda x, y: x * y, s)) |
| 124 | assert_equal(count(xm), len(m1) - reduce(lambda x, y: x + y, m1)) |
| 125 | assert_(eq(xm, xf)) |
| 126 | assert_(eq(filled(xm, 1.e20), xf)) |
| 127 | assert_(eq(x, xm)) |
| 128 | |
| 129 | @pytest.mark.parametrize("s", [(4, 3), (6, 2)]) |
| 130 | def test_testBasic2d(self, s): |
nothing calls this directly
no test coverage detected