(self)
| 228 | assert_raises(np.ma.MAError, lambda: mr_['1, 2; 3, 4']) |
| 229 | |
| 230 | def test_matrix(self): |
| 231 | # Test consistency with unmasked version. If we ever deprecate |
| 232 | # matrix, this test should either still pass, or both actual and |
| 233 | # expected should fail to be build. |
| 234 | actual = mr_['r', 1, 2, 3] |
| 235 | expected = np.ma.array(np.r_['r', 1, 2, 3]) |
| 236 | assert_array_equal(actual, expected) |
| 237 | |
| 238 | # outer type is masked array, inner type is matrix |
| 239 | assert_equal(type(actual), type(expected)) |
| 240 | assert_equal(type(actual.data), type(expected.data)) |
nothing calls this directly
no test coverage detected