Skip to content
Snippets Groups Projects
Commit 36c6d2fa authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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

parent e23d5a64
No related branches found
No related tags found
No related merge requests found
......@@ -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))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment