mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 09:00:23 +08:00
parent
25c84643b6
commit
ccd0e0afcd
15
tests/basics/for_break.py
Normal file
15
tests/basics/for_break.py
Normal file
@ -0,0 +1,15 @@
|
||||
# Testcase for break in a for [within bunch of other code]
|
||||
# https://github.com/micropython/micropython/issues/635
|
||||
|
||||
def foo():
|
||||
seq = [1, 2, 3]
|
||||
v = 100
|
||||
i = 5
|
||||
while i > 0:
|
||||
print(i)
|
||||
for a in seq:
|
||||
if a == 2:
|
||||
break
|
||||
i -= 1
|
||||
|
||||
foo()
|
Loading…
Reference in New Issue
Block a user