Skip to content

Commit

Permalink
tests/builtin_minmax: Make compatible with @Native codegen.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Sokolovsky committed Dec 7, 2015
1 parent f380904 commit 5599586
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/basics/builtin_minmax.py
Expand Up @@ -35,5 +35,7 @@
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))
# make sure it works with lazy iterables
# can't use Python generators here, as they're not supported
# byy native codegenerator.
print(min(enumerate([]), default=-10))

0 comments on commit 5599586

Please sign in to comment.