test for the changeComponent(...)-method
(self)
| 108 | self.assertEqual(x.__str__(), y.__str__()) |
| 109 | |
| 110 | def test_changeComponent(self): |
| 111 | """ |
| 112 | test for the changeComponent(...)-method |
| 113 | """ |
| 114 | x = Vector([1, 0, 0]) |
| 115 | x.changeComponent(0, 0) |
| 116 | x.changeComponent(1, 1) |
| 117 | self.assertEqual(x.__str__(), "(0,1,0)") |
| 118 | |
| 119 | def test_str_matrix(self): |
| 120 | A = Matrix([[1, 2, 3], [2, 4, 5], [6, 7, 8]], 3, 3) |
nothing calls this directly
no test coverage detected