()
| 806 | |
| 807 | |
| 808 | def test_equality(): |
| 809 | |
| 810 | # do not raise error comparing with other type |
| 811 | assert (Vector(0, 0, 0) == 0) == False |
| 812 | assert (Plane.XY() == 0) == False |
| 813 | |
| 814 | list1 = [ |
| 815 | Vector(0, 0, 0), |
| 816 | Plane.XY(), |
| 817 | Vertex.makeVertex(0, 0, 0), |
| 818 | "a string", |
| 819 | 4, |
| 820 | ] |
| 821 | assert [list1.index(item) for item in list1] == [0, 1, 2, 3, 4] |
| 822 | |
| 823 | |
| 824 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected