Put tests in the correct order

This commit is contained in:
Chris Proctor 2023-08-03 17:48:43 -04:00
parent 6fb14dfe92
commit d9c4f4a54a
1 changed files with 2 additions and 2 deletions

View File

@ -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)