mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
Insert consecutive numbering test into random test
This commit is contained in:
@@ -241,6 +241,8 @@ class TestConvertFileLengthUnits(test.bootstrap.IFC2X3):
|
||||
unit = ifcopenshell.api.unit.add_si_unit(self.file, unit_type="LENGTHUNIT", prefix="MILLI")
|
||||
ifcopenshell.api.unit.assign_unit(self.file, units=[unit])
|
||||
output = subject.convert_file_length_units(self.file, target_units="METER")
|
||||
# there was some renumbering bug in the rocksdb rewrite this statement is to test for that
|
||||
assert max(i.id() for i in output) == len(output.wrapped_data.entity_names()) + 1
|
||||
assert subject.get_full_unit_name(subject.get_project_unit(output, "LENGTHUNIT")) == "METRE"
|
||||
|
||||
def test_attribute_conversion(self):
|
||||
|
||||
Reference in New Issue
Block a user