test for Matrix method component()
(self)
| 177 | assert str(a) == "|1,2,5|\n|2,4,5|\n|6,7,8|\n" |
| 178 | |
| 179 | def test_component_matrix(self) -> None: |
| 180 | """ |
| 181 | test for Matrix method component() |
| 182 | """ |
| 183 | a = Matrix([[1, 2, 3], [2, 4, 5], [6, 7, 8]], 3, 3) |
| 184 | assert a.component(2, 1) == 7, "0.01" |
| 185 | |
| 186 | def test__add__matrix(self) -> None: |
| 187 | """ |