SquareMatrix is derived from Matrix and inherits the buffer protocol
()
| 138 | |
| 139 | |
| 140 | def test_inherited_protocol(): |
| 141 | """SquareMatrix is derived from Matrix and inherits the buffer protocol""" |
| 142 | |
| 143 | matrix = m.SquareMatrix(5) |
| 144 | assert memoryview(matrix).shape == (5, 5) |
| 145 | assert np.asarray(matrix).shape == (5, 5) |
| 146 | |
| 147 | |
| 148 | def test_pointer_to_member_fn(): |
nothing calls this directly
no test coverage detected