Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
049a01d1
Commit
049a01d1
authored
May 31, 2014
by
Damien George
Browse files
tests: Add another test for break-from-for-loop.
parent
ff8da0b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/basics/for_break.py
View file @
049a01d1
...
...
@@ -13,3 +13,15 @@ def foo():
i
-=
1
foo
()
# break from within nested for loop
def
bar
():
l
=
[
1
,
2
,
3
]
for
e1
in
l
:
print
(
e1
)
for
e2
in
l
:
print
(
e1
,
e2
)
if
e2
==
2
:
break
bar
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment