From 8173e4474b9637c0790035faea73666a329a24de Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 27 Feb 2024 12:44:58 +0100 Subject: [PATCH] Tests: use the correct value as reference --- src/Mod/PartDesign/PartDesignTests/TestHelix.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/PartDesignTests/TestHelix.py b/src/Mod/PartDesign/PartDesignTests/TestHelix.py index a1c13da1d9..894506293a 100644 --- a/src/Mod/PartDesign/PartDesignTests/TestHelix.py +++ b/src/Mod/PartDesign/PartDesignTests/TestHelix.py @@ -123,7 +123,11 @@ class TestHelix(unittest.TestCase): self.Doc.recompute() bbox = helix.Shape.BoundBox self.assertAlmostEqual(bbox.YMin,0) - self.assertAlmostEqual(helix.Shape.Volume, 1178.0961742825648,places=5) + # Computed exact value + # with r = radius, l = length of square, t = turns + # pi * r**2 * l * t + expected = pi * 25 * 5 * 3 + self.assertAlmostEqual(helix.Shape.Volume, expected, places=2) def testCone(self):