diff --git a/tests/basics/builtin_minmax.py b/tests/basics/builtin_minmax.py index 6fb3985697..cee7facf2b 100644 --- a/tests/basics/builtin_minmax.py +++ b/tests/basics/builtin_minmax.py @@ -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))