Put tests in the correct order
This commit is contained in:
parent
6fb14dfe92
commit
d9c4f4a54a
|
@ -15,10 +15,10 @@ def test(function, arguments, expected):
|
|||
args = ', '.join(str(arg) for arg in arguments)
|
||||
print(f"Error: Expected {function}({args}) to equal {expected}, but it was {observed}")
|
||||
|
||||
test(maximum, [[0, 1, 2, 3]], 3)
|
||||
test(maximum, [[-10, -20, -30]], -10)
|
||||
test(minimum, [[0, 1, 2, 3]], 0)
|
||||
test(minimum, [[-10, -20, -30]], -30)
|
||||
test(maximum, [[0, 1, 2, 3]], 3)
|
||||
test(maximum, [[-10, -20, -30]], -10)
|
||||
test(bounds, [[0, 1, 2, 3]], [0, 3])
|
||||
test(bounds, [[-10, -20, -30]], [-30, -10])
|
||||
test(clamp, [10, 0, 100], 10)
|
||||
|
|
Loading…
Reference in New Issue