tests: Add min/max "default" agrument test

stmhal-poll-oneshot
pohmelie 2015-12-07 19:29:56 +03:00 committed by Paul Sokolovsky
parent c6ee273410
commit e23d5a64cf
1 changed files with 6 additions and 0 deletions

View File

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