Commit 7538d9b5 authored by Julien Muchembled's avatar Julien Muchembled

Fix tolerance_range_max on float divergence testers

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41889 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3d8c3109
......@@ -147,10 +147,10 @@ class FloatEquivalenceTester(Predicate, EquivalenceTesterMixin):
value=relative_tolerance_min))
relative_tolerance_max = self.getProperty('tolerance_range_max')
if relative_tolerance_max is not None and \
delta < relative_tolerance_max * base:
delta > relative_tolerance_max * base:
return (
prevision_value, decision_value,
'The difference of ${property_name} between decision and prevision is less than ${value} times of the prevision value.',
'The difference of ${property_name} between decision and prevision is greater than ${value} times of the prevision value.',
dict(property_name=tested_property,
value=relative_tolerance_max))
......
Markdown is supported
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