test for method component()
(self)
| 23 | |
| 24 | class Test(unittest.TestCase): |
| 25 | def test_component(self) -> None: |
| 26 | """ |
| 27 | test for method component() |
| 28 | """ |
| 29 | x = Vector([1, 2, 3]) |
| 30 | assert x.component(0) == 1 |
| 31 | assert x.component(2) == 3 |
| 32 | _ = Vector() |
| 33 | |
| 34 | def test_str(self) -> None: |
| 35 | """ |