diff --git a/src/ifcopenshell-python/test/fixtures/validate/fail-selected-simple-type-as-literal.ifc b/src/ifcopenshell-python/test/fixtures/validate/fail-selected-simple-type-as-literal.ifc new file mode 100644 index 0000000000..44454937eb --- /dev/null +++ b/src/ifcopenshell-python/test/fixtures/validate/fail-selected-simple-type-as-literal.ifc @@ -0,0 +1,10 @@ +ISO-10303-21; +HEADER; +FILE_DESCRIPTION(('ViewDefinition[DesignTransferView]'),'2;1'); +FILE_NAME('qset.ifc','2024-11-15T12:05:44+05:00',(''),(''),'IfcOpenShell 0.0.0','Bonsai 0.8.1-alpha241113-d3333fe','Nobody'); +FILE_SCHEMA(('IFC2X3')); +ENDSEC; +DATA; +#1=IFCPROPERTYSINGLEVALUE('InstallationDate',$,0.2,$); +ENDSEC; +END-ISO-10303-21; \ No newline at end of file diff --git a/src/ifcopenshell-python/test/fixtures/validate/fail-selected-simple-type-empty-typed-value.ifc b/src/ifcopenshell-python/test/fixtures/validate/fail-selected-simple-type-empty-typed-value.ifc new file mode 100644 index 0000000000..0f16f1009c --- /dev/null +++ b/src/ifcopenshell-python/test/fixtures/validate/fail-selected-simple-type-empty-typed-value.ifc @@ -0,0 +1,10 @@ +ISO-10303-21; +HEADER; +FILE_DESCRIPTION(('ViewDefinition[DesignTransferView]'),'2;1'); +FILE_NAME('qset.ifc','2024-11-15T12:05:44+05:00',(''),(''),'IfcOpenShell 0.0.0','Bonsai 0.8.1-alpha241113-d3333fe','Nobody'); +FILE_SCHEMA(('IFC2X3')); +ENDSEC; +DATA; +#1=IFCPROPERTYSINGLEVALUE('InstallationDate',$,IFCREAL(),$); +ENDSEC; +END-ISO-10303-21; \ No newline at end of file diff --git a/src/ifcopenshell-python/test/fixtures/validate/fail-selected-simple-type-non-existant-type.ifc b/src/ifcopenshell-python/test/fixtures/validate/fail-selected-simple-type-non-existant-type.ifc new file mode 100644 index 0000000000..f305a8cffe --- /dev/null +++ b/src/ifcopenshell-python/test/fixtures/validate/fail-selected-simple-type-non-existant-type.ifc @@ -0,0 +1,10 @@ +ISO-10303-21; +HEADER; +FILE_DESCRIPTION(('ViewDefinition[DesignTransferView]'),'2;1'); +FILE_NAME('qset.ifc','2024-11-15T12:05:44+05:00',(''),(''),'IfcOpenShell 0.0.0','Bonsai 0.8.1-alpha241113-d3333fe','Nobody'); +FILE_SCHEMA(('IFC2X3')); +ENDSEC; +DATA; +#1=IFCPROPERTYSINGLEVALUE('InstallationDate',$,IFCNONEXISTANTTYPE(0.1),$); +ENDSEC; +END-ISO-10303-21; \ No newline at end of file diff --git a/src/ifcopenshell-python/test/fixtures/validate/fail-selected-simple-type-wrong-literal.ifc b/src/ifcopenshell-python/test/fixtures/validate/fail-selected-simple-type-wrong-literal.ifc new file mode 100644 index 0000000000..ecdf307868 --- /dev/null +++ b/src/ifcopenshell-python/test/fixtures/validate/fail-selected-simple-type-wrong-literal.ifc @@ -0,0 +1,10 @@ +ISO-10303-21; +HEADER; +FILE_DESCRIPTION(('ViewDefinition[DesignTransferView]'),'2;1'); +FILE_NAME('qset.ifc','2024-11-15T12:05:44+05:00',(''),(''),'IfcOpenShell 0.0.0','Bonsai 0.8.1-alpha241113-d3333fe','Nobody'); +FILE_SCHEMA(('IFC2X3')); +ENDSEC; +DATA; +#1=IFCPROPERTYSINGLEVALUE('InstallationDate',$,IFCLABEL(0.5),$); +ENDSEC; +END-ISO-10303-21; \ No newline at end of file diff --git a/src/ifcopenshell-python/test/fixtures/validate/fail-simple-type-as-typed-value.ifc b/src/ifcopenshell-python/test/fixtures/validate/fail-simple-type-as-typed-value.ifc new file mode 100644 index 0000000000..e763b7e792 --- /dev/null +++ b/src/ifcopenshell-python/test/fixtures/validate/fail-simple-type-as-typed-value.ifc @@ -0,0 +1,10 @@ +ISO-10303-21; +HEADER; +FILE_DESCRIPTION(('ViewDefinition[DesignTransferView]'),'2;1'); +FILE_NAME('qset.ifc','2024-11-15T12:05:44+05:00',(''),(''),'IfcOpenShell 0.0.0','Bonsai 0.8.1-alpha241113-d3333fe','Nobody'); +FILE_SCHEMA(('IFC2X3')); +ENDSEC; +DATA; +#1=IFCQUANTITYAREA('GSA BIM Area',$,$,IFCAREAMEASURE(5.415819401311199)); +ENDSEC; +END-ISO-10303-21; \ No newline at end of file diff --git a/src/ifcopenshell-python/test/fixtures/validate/pass-selected-simple-type.ifc b/src/ifcopenshell-python/test/fixtures/validate/pass-selected-simple-type.ifc new file mode 100644 index 0000000000..ff36007465 --- /dev/null +++ b/src/ifcopenshell-python/test/fixtures/validate/pass-selected-simple-type.ifc @@ -0,0 +1,10 @@ +ISO-10303-21; +HEADER; +FILE_DESCRIPTION(('ViewDefinition[DesignTransferView]'),'2;1'); +FILE_NAME('qset.ifc','2024-11-15T12:05:44+05:00',(''),(''),'IfcOpenShell 0.0.0','Bonsai 0.8.1-alpha241113-d3333fe','Nobody'); +FILE_SCHEMA(('IFC2X3')); +ENDSEC; +DATA; +#6=IFCPROPERTYSINGLEVALUE('InstallationDate',$,IFCLABEL('InstallationDate'),$); +ENDSEC; +END-ISO-10303-21; \ No newline at end of file diff --git a/src/ifcopenshell-python/test/fixtures/validate/pass-simple-type-as-float-literal.ifc b/src/ifcopenshell-python/test/fixtures/validate/pass-simple-type-as-float-literal.ifc new file mode 100644 index 0000000000..bbc39907c0 --- /dev/null +++ b/src/ifcopenshell-python/test/fixtures/validate/pass-simple-type-as-float-literal.ifc @@ -0,0 +1,10 @@ +ISO-10303-21; +HEADER; +FILE_DESCRIPTION(('ViewDefinition[DesignTransferView]'),'2;1'); +FILE_NAME('qset.ifc','2024-11-15T12:05:44+05:00',(''),(''),'IfcOpenShell 0.0.0','Bonsai 0.8.1-alpha241113-d3333fe','Nobody'); +FILE_SCHEMA(('IFC2X3')); +ENDSEC; +DATA; +#8786=IFCQUANTITYAREA('GSA BIM Area',$,$,5.415819401311199); +ENDSEC; +END-ISO-10303-21; \ No newline at end of file