Skip to content

Commit dc8fcd2

Browse files
authored
update floating point comparison tests (#304)
* update floating point comparison tests removed attribute and property tests using fixed 1e6 tolerance, replaced with relative precision (according to #294) * remove old floating point comparison tests remove omitted tests with a fixed tolerance
1 parent 35a4d12 commit dc8fcd2

File tree

81 files changed

+2023
-206
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+2023
-206
lines changed

Documentation/testcases/attribute/fail-floating_point_numbers_are_compared_with_a_1e_6_tolerance_3_4.ids

Lines changed: 0 additions & 28 deletions
This file was deleted.

Documentation/testcases/attribute/fail-floating_point_numbers_are_compared_with_a_1e_6_tolerance_3_4.ifc

Lines changed: 0 additions & 12 deletions
This file was deleted.

Documentation/testcases/attribute/fail-floating_point_numbers_are_compared_with_a_1e_6_tolerance_4_4.ifc

Lines changed: 0 additions & 13 deletions
This file was deleted.

Documentation/testcases/attribute/pass-floating_point_numbers_are_compared_with_a_1e_6_tolerance_1_4.ids

Lines changed: 0 additions & 28 deletions
This file was deleted.

Documentation/testcases/attribute/pass-floating_point_numbers_are_compared_with_a_1e_6_tolerance_1_4.ifc

Lines changed: 0 additions & 10 deletions
This file was deleted.

Documentation/testcases/attribute/pass-floating_point_numbers_are_compared_with_a_1e_6_tolerance_2_4.ifc

Lines changed: 0 additions & 11 deletions
This file was deleted.

Documentation/testcases/property/pass-floating_point_numbers_are_compared_with_a_1e_6_tolerance_1_4.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<html>
2+
<head>
3+
<title>Comparison report for property\pass-floating_point_numbers_are_compared_with_a_1e_6_tolerance_1_4.ids</title>
4+
</head>
5+
6+
<body>
7+
<h1>Comparison report for property\pass-floating_point_numbers_are_compared_with_a_1e_6_tolerance_1_4.ids</h1>
8+
<h2>Script</h2>
9+
<pre>
10+
``` ids property\pass-floating_point_numbers_are_compared_with_a_1e_6_tolerance_1_4.ids
11+
Floating point numbers are compared with a 1e-6 tolerance 1/4
12+
Entity: ''IFCWALL''
13+
Requirements:
14+
Property: ''Foo_Bar'',''Foo'',IFCREAL,''42.''
15+
```
16+
</pre>
17+
<h2>Comparison to original IDS</h2>
18+
<span>&lt;?xml version="1.0" encoding="utf-16"?&gt;<br>&lt;ids xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"<br> xsi:schemaLocation="http://standards.buildingsmart.org/IDS http://standards.buildingsmart.org/IDS/0.9.7/ids.xsd" xmlns="http://standards.buildingsmart.org/IDS"&gt;<br> &lt;info&gt;<br> &lt;title&gt;Floating point numbers are compared with a 1e-6 tolerance 1/4&lt;/title&gt;<br> &lt;description&gt;Generated via code automation in the Ids Repository on github.&lt;/description&gt;<br> &lt;/info&gt;<br> &lt;specifications&gt;<br> &lt;specification<br> name="Floating point numbers are compared with a 1e-6 tolerance 1/4"<br> ifcVersion="IFC2X3 IFC4"&gt;<br> &lt;applicability<br> maxOccurs="unbounded"&gt;<br> &lt;entity&gt;<br> &lt;name&gt;<br> &lt;simpleValue&gt;IFCWALL&lt;/simpleValue&gt;<br> &lt;/name&gt;<br> &lt;/entity&gt;<br> &lt;/applicability&gt;<br> &lt;requirements&gt;<br> &lt;property<br> dataType="IFCREAL"&gt;<br> &lt;propertySet&gt;<br> &lt;simpleValue&gt;Foo_Bar&lt;/simpleValue&gt;<br> &lt;/propertySet&gt;<br> &lt;baseName&gt;<br> &lt;simpleValue&gt;Foo&lt;/simpleValue&gt;<br> &lt;/baseName&gt;<br> &lt;value&gt;<br> &lt;simpleValue&gt;42.&lt;/simpleValue&gt;<br> &lt;/value&gt;<br> &lt;/property&gt;<br> &lt;/requirements&gt;<br> &lt;/specification&gt;<br> &lt;/specifications&gt;<br>&lt;/ids&gt;</span>
19+
</body>
20+
21+
</html>

Documentation/testcases/property/pass-floating_point_numbers_are_compared_with_a_1e_6_tolerance_2_4.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<html>
2+
<head>
3+
<title>Comparison report for property\pass-floating_point_numbers_are_compared_with_a_1e_6_tolerance_2_4.ids</title>
4+
</head>
5+
6+
<body>
7+
<h1>Comparison report for property\pass-floating_point_numbers_are_compared_with_a_1e_6_tolerance_2_4.ids</h1>
8+
<h2>Script</h2>
9+
<pre>
10+
``` ids property\pass-floating_point_numbers_are_compared_with_a_1e_6_tolerance_2_4.ids
11+
Floating point numbers are compared with a 1e-6 tolerance 2/4
12+
Entity: ''IFCWALL''
13+
Requirements:
14+
Property: ''Foo_Bar'',''Foo'',IFCREAL,''42.''
15+
```
16+
</pre>
17+
<h2>Comparison to original IDS</h2>
18+
<span>&lt;?xml version="1.0" encoding="utf-16"?&gt;<br>&lt;ids xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"<br> xsi:schemaLocation="http://standards.buildingsmart.org/IDS http://standards.buildingsmart.org/IDS/0.9.7/ids.xsd" xmlns="http://standards.buildingsmart.org/IDS"&gt;<br> &lt;info&gt;<br> &lt;title&gt;Floating point numbers are compared with a 1e-6 tolerance 2/4&lt;/title&gt;<br> &lt;description&gt;Generated via code automation in the Ids Repository on github.&lt;/description&gt;<br> &lt;/info&gt;<br> &lt;specifications&gt;<br> &lt;specification<br> name="Floating point numbers are compared with a 1e-6 tolerance 2/4"<br> ifcVersion="IFC2X3 IFC4"&gt;<br> &lt;applicability<br> maxOccurs="unbounded"&gt;<br> &lt;entity&gt;<br> &lt;name&gt;<br> &lt;simpleValue&gt;IFCWALL&lt;/simpleValue&gt;<br> &lt;/name&gt;<br> &lt;/entity&gt;<br> &lt;/applicability&gt;<br> &lt;requirements&gt;<br> &lt;property<br> dataType="IFCREAL"&gt;<br> &lt;propertySet&gt;<br> &lt;simpleValue&gt;Foo_Bar&lt;/simpleValue&gt;<br> &lt;/propertySet&gt;<br> &lt;baseName&gt;<br> &lt;simpleValue&gt;Foo&lt;/simpleValue&gt;<br> &lt;/baseName&gt;<br> &lt;value&gt;<br> &lt;simpleValue&gt;42.&lt;/simpleValue&gt;<br> &lt;/value&gt;<br> &lt;/property&gt;<br> &lt;/requirements&gt;<br> &lt;/specification&gt;<br> &lt;/specifications&gt;<br>&lt;/ids&gt;</span>
19+
</body>
20+
21+
</html>

0 commit comments

Comments
 (0)