mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
tests/builtin_minmax: Make compatible with @native codegen.
This commit is contained in:
@@ -35,5 +35,7 @@ print(min([1, 2, 3, 4, 5], default=-1))
|
|||||||
print(min([], default=-1))
|
print(min([], default=-1))
|
||||||
print(max([1, 2, 3, 4, 5], default=-1))
|
print(max([1, 2, 3, 4, 5], default=-1))
|
||||||
print(max([], default=-1))
|
print(max([], default=-1))
|
||||||
# Make sure it works with lazy iterables
|
# make sure it works with lazy iterables
|
||||||
print(min((i for i in []), default=-10))
|
# can't use Python generators here, as they're not supported
|
||||||
|
# byy native codegenerator.
|
||||||
|
print(min(enumerate([]), default=-10))
|
||||||
|
|||||||
Reference in New Issue
Block a user