(self)
| 219 | assert_raises(np.ma.MAError, lambda: mr_['1, 2; 3, 4']) |
| 220 | |
| 221 | def test_matrix(self): |
| 222 | # Test consistency with unmasked version. If we ever deprecate |
| 223 | # matrix, this test should either still pass, or both actual and |
| 224 | # expected should fail to be build. |
| 225 | actual = mr_['r', 1, 2, 3] |
| 226 | expected = np.ma.array(np.r_['r', 1, 2, 3]) |
| 227 | assert_array_equal(actual, expected) |
| 228 | |
| 229 | # outer type is masked array, inner type is matrix |
| 230 | assert_equal(type(actual), type(expected)) |
| 231 | assert_equal(type(actual.data), type(expected.data)) |
nothing calls this directly
no test coverage detected