Commit 22daff58 authored by Julian Marcon's avatar Julian Marcon
Browse files

Make the tests more robust to tiny values

parent 43dbc8a9
Pipeline #2628 passed with stages
in 340 minutes and 15 seconds
......@@ -10,21 +10,21 @@
</files>
<metrics>
<metric type="regex" id="1">
<regex>^([^\s]+) #(\d+) has (\d+) quadrants at \(([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?), ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?)\)</regex>
<regex>^([^\s]+) #(\d+) has (\d+) quadrants at \((?:[-+]?[0-9]*\.?[0-9]+)*?([eE]?[-+]?[0-9]*\.?[0-9]+), (?:[-+]?[0-9]*\.?[0-9]+)*?([eE]?[-+]?[0-9]*\.?[0-9]+)\)</regex>
<matches>
<match>
<field id="0">Vertex</field>
<field id="1">1</field>
<field id="2">1</field>
<field id="3">0</field>
<field id="4">-5.84047e-17</field>
<field id="4">e-17</field>
</match>
<match>
<field id="0">Vertex</field>
<field id="1">2</field>
<field id="2">1</field>
<field id="3">1</field>
<field id="4">3.34524e-17</field>
<field id="4">e-17</field>
</match>
<match>
<field id="0">Singularity</field>
......
......@@ -17,15 +17,15 @@
</matches>
</metric>
<metric type="regex" id="2">
<regex>^\[InputMCF\]\s+(\d+)\s+([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?)</regex>
<regex>^\[InputMCF\]\s+(\d+)\s+[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)</regex>
<matches>
<match>
<field id="0">0</field>
<field id="1">-5.84047e-17</field>
<field id="1">e-17</field>
</match>
<match>
<field id="0">1</field>
<field id="1">3.34524e-17</field>
<field id="1">e-17</field>
</match>
</matches>
</metric>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment