Skip to content
Snippets Groups Projects
Commit e23d5a64 authored by pohmelie's avatar pohmelie Committed by Paul Sokolovsky
Browse files

tests: Add min/max "default" agrument test

parent c6ee2734
No related branches found
No related tags found
No related merge requests found
......@@ -29,3 +29,9 @@ try:
min([])
except ValueError:
print("ValueError")
# 'default' tests
print(min([1, 2, 3, 4, 5], default=-1))
print(min([], default=-1))
print(max([1, 2, 3, 4, 5], default=-1))
print(max([], default=-1))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment