mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 02:23:34 +00:00
Rework equality and get_info_2
This commit is contained in:
@@ -67,3 +67,12 @@ class TestGetInfo2(test.bootstrap.IFC4):
|
||||
"Outer": {"CfsFaces": None, "type": "IfcClosedShell"},
|
||||
"type": "IfcFacetedBrep",
|
||||
}
|
||||
|
||||
def test_equality():
|
||||
f = ifcopenshell.file()
|
||||
g = ifcopenshell.file()
|
||||
f.createIfcCartesianPoint((0., 0.))
|
||||
g.createIfcCartesianPoint((0., 0.))
|
||||
assert f[1] == g[1]
|
||||
g[1].Coordinates = (1., 0.)
|
||||
assert f[1] != g[1]
|
||||
|
||||
Reference in New Issue
Block a user