tests: Add min/max "default" agrument test
This commit is contained in:
parent
c6ee273410
commit
e23d5a64cf
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user