test for - operator
(self)
| 60 | self.assertEqual((x + y).component(2), 4) |
| 61 | |
| 62 | def test_sub(self): |
| 63 | """ |
| 64 | test for - operator |
| 65 | """ |
| 66 | x = Vector([1, 2, 3]) |
| 67 | y = Vector([1, 1, 1]) |
| 68 | self.assertEqual((x - y).component(0), 0) |
| 69 | self.assertEqual((x - y).component(1), 1) |
| 70 | self.assertEqual((x - y).component(2), 2) |
| 71 | |
| 72 | def test_mul(self): |
| 73 | """ |