tests/builtin_minmax: Add testcase for lazy iterable (generator).
This commit is contained in:
parent
e23d5a64cf
commit
36c6d2fa7d
|
@ -35,3 +35,5 @@ 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))
|
||||
# Make sure it works with lazy iterables
|
||||
print(min((i for i in []), default=-10))
|
||||
|
|
Loading…
Reference in New Issue