]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Adjust test case. Set correct values (issue #19036)
authorArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Tue, 28 Apr 2020 14:25:11 +0000 (17:25 +0300)
committerArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Tue, 28 Apr 2020 14:25:11 +0000 (17:25 +0300)
src/ParametersPlugin/Test/Test2392.py

index 657fe175743c51297f582b35f17aa039f762bd0e..1ba9478ef30e30a540e0065b7e1750420338e5d7 100644 (file)
@@ -49,7 +49,9 @@ model.do()
 aSession.setActiveDocument(Part_1_doc, False)
 model.end()
 
+import math
+TOLERANCE = 1.e-7
 # check the circle radius value
-assert(SketchCircle_1.radius().value() == 64.9545)
+assert(math.fabs(SketchCircle_1.radius().value() - 64.95456276) < TOLERANCE)
 
 assert(model.checkPythonDump())