Skip to content

Commit f666d4f

Browse files
committed
Refactor assert statement in S() function to improve error message
1 parent 814b7fd commit f666d4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fuzzylogic/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def S(low: Number, high: Number) -> Callable:
311311
THIS FUNCTION ONLY CAN HAVE A NEGATIVE SLOPE -
312312
USE THE R() FUNCTION FOR POSITIVE SLOPE.
313313
"""
314-
assert low < high, f"{low} < {high} is not true."
314+
assert low < high, f"{low} must be less than {high}."
315315

316316
def f(x: Number) -> float:
317317
if x <= low:

0 commit comments

Comments
 (0)