065df5568c
And make it so this test can run on any target. LED and time testing has been removed from this test, that can now be tested using: ./run-tests.py --via-mpy --emit native. Signed-off-by: Damien George <damien@micropython.org>
14 lines
128 B
Python
14 lines
128 B
Python
# test native while loop
|
|
|
|
|
|
@micropython.native
|
|
def f(n):
|
|
i = 0
|
|
while i < n:
|
|
print(i)
|
|
i += 1
|
|
|
|
|
|
f(2)
|
|
f(4)
|