mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
tests: Add min/max "default" agrument test
This commit is contained in:
committed by
Paul Sokolovsky
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))
|
||||
|
||||
Reference in New Issue
Block a user