tests/builtin_minmax: Add testcase for lazy iterable (generator).

This commit is contained in:
Paul Sokolovsky 2015-12-07 18:59:18 +02:00
parent e23d5a64cf
commit 36c6d2fa7d
1 changed files with 2 additions and 0 deletions

View File

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