MCPcopy
hub / github.com/CadQuery/cadquery / test_equality

Function test_equality

tests/test_cad_objects.py:808–821  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

806
807
808def 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
824if __name__ == "__main__":

Callers

nothing calls this directly

Calls 3

VectorClass · 0.85
XYMethod · 0.80
makeVertexMethod · 0.80

Tested by

no test coverage detected