Commit e23d5a64 authored by pohmelie's avatar pohmelie Committed by Paul Sokolovsky
Browse files

tests: Add min/max "default" agrument test

parent c6ee2734
......@@ -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))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment