5 min_val >= lower_threshold
6 ), f
"Array enthält Wert unter {lower_threshold}: min={min_val}"
11 max_val <= upper_threshold
12 ), f
"Array enthält Wert über {upper_threshold}: max={max_val}"
def test_array_within_threshold(arr, lower_threshold=-1e-8, upper_threshold=1e-8)