From f7cdc319874aa186e57a6e895845e1e26075696e Mon Sep 17 00:00:00 2001 From: lo-simon Date: Tue, 31 Mar 2026 16:06:15 +0100 Subject: [PATCH] The original calculation formula had a bug where minimum was added twice --- nmostesting/suites/MS0501Test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmostesting/suites/MS0501Test.py b/nmostesting/suites/MS0501Test.py index bf9d3b70..158c900a 100644 --- a/nmostesting/suites/MS0501Test.py +++ b/nmostesting/suites/MS0501Test.py @@ -1810,7 +1810,7 @@ def _generate_number_parameters(self, constraints_, violate_constraints=False): maximum = (constraints.maximum or sys.maxsize if constraints else sys.maxsize) step = (constraints.step or 1 if constraints else 1) - valid_value = floor((((maximum - minimum) / 2) + minimum) / step) * step + minimum + valid_value = floor(((maximum - minimum) / 2) / step) * step + minimum # Valid value if not violate_constraints: