Commit ccd0e0af authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests: Add test for break in for.

For #635 / 25c84643.
parent 25c84643
# 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()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment