test for - operator
(self)
| 69 | assert (x + y).component(2) == 4 |
| 70 | |
| 71 | def test_sub(self) -> None: |
| 72 | """ |
| 73 | test for - operator |
| 74 | """ |
| 75 | x = Vector([1, 2, 3]) |
| 76 | y = Vector([1, 1, 1]) |
| 77 | assert (x - y).component(0) == 0 |
| 78 | assert (x - y).component(1) == 1 |
| 79 | assert (x - y).component(2) == 2 |
| 80 | |
| 81 | def test_mul(self) -> None: |
| 82 | """ |